I have made a project to keep the record of temperature and time but while printing the records the time is not shown in proper way as in 24 hr format.
what i get is this
8/4/2015 15:57:09 24.9
8/4/2015 15:57:39 25.39
8/4/2015 15:58:09 25.39
8/4/2015 15:58:39 23.44
8/4/2015 15:59:09 24.9 8/4/2015 15:59:39 25.39 8/4/2015 10:00:09 24.9
8/4/2015 10:00:39 25.39
8/4/2015 10:01:09 25.39
8/4/2015 10:01:39 25.39
8/4/2015 10:02:09 25.39
8/4/2015 10:02:39 25.39
but i wanted it to be 8/4/2015 15:59:09 24.9 8/4/2015 15:59:39 25.39 8/4/2015 16:00:09 24.9 8/4/2015 16:00:39 25.39
.
Is it the problem because of hexadecimal number and decimal number?
how to solve this problem please help me.
There are possible hardware defects in the lower four bits of the hours register which can give abnormal values, but this problem should be evident at more than the 5 to 6 (or 15 to 16) rollover.
Set your RTC to examine each hour boundary between midnight (00) and 10. Can you see any other anomalous values other than 5 going to 0 instead of 6. If you set the clock to look at the 6 to 7 roll over and the 7 to 8 rollover what do you see? Do the hours between 8 and 10 appear normally?