It’s a good idea to use LCD’s with projects like this instead of led digits, because LCD’s don’t need to be refreshed, they allow you to display many characters and it requires less I/O pins. In this project a 16×1 LCD Display with 4-bits interface it’s used. Time and date are displayed as HH:MM:SSx mmm dd, where: HH = Hours MM = Minutes SS = Seconds x = AM/PM mmm = Month (Jan, Feb, Mar) dd = Day.
LCD Display with Date and Time: [Link]
Â Â Â It could happen to anyone to have problems with date and time. For example I had a problem a few dayâ€™s ago with an older server of mine which has problems with hardware time, it resets everytime I disconnect it from power. Its something to do with the motherboard I changed the battery but that didnâ€™t solved the problem. Thatâ€™s why sometimes I need to correct its date with the following method:
date –set 2007-10-15
to set yyyy-mm-dd
date –set 16:47:30
to set hh-mm-ss
to sync hardware clock to what we introduced earlier
Â Â Â At least from Debian version 2.2 onwards, the system automatically saves the system time to hardware clock on shutdown, and sets the system clock from hardware clock when Debian boots up. This is done in the script
Â Â Â Another thing you might ran into is changing the timezone.
If the timezone is not set or is wrong, log in as superuser and run tzconfig to configure the timezone.
Thatâ€™s it a short tutorial about date in Debian.