Results 1 to 10 of 11
Hi ,
I have fedora 7 on my system . Now i have a doubt wrt date and time setttings .
Whenever i am setings the clock for 12 AM ...
- 05-05-2009 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 80
Date and Time settings issue faced in fedora 7 ..Need help
Hi ,
I have fedora 7 on my system . Now i have a doubt wrt date and time setttings .
Whenever i am setings the clock for 12 AM midnight ...
i can see that fedora provides me 24 hours also ! Actually after 23.59 the time change must be 00.00 ...but in my case its showing as 24.00 .
Please let me know , if any packages need to added or something's missing or have I deleted some specific file which takes care of this ?
Regards,
Deepak
- 05-05-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
On a 24 hour clock, midnight is 2400 hours, hence the 24:00 display. This is functioning as designed. Now, why do you want it to read 00:00?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-06-2009 #3
However it should show 24:00 only for 1 minute.
after that it will show 00:01
Click here to know more about 24h Clock
- 05-06-2009 #4
- 05-06-2009 #5
Every thing on Wiki you get is what you put there. so if you got something true and cool. just put it there.
- 05-06-2009 #6
2400 is not part of the 24hr clock. The numbers used are 00-23 for the hour, 00-59 for the minutes and 00-59 for the seconds. Once the clock reaches 23:59:59 it should roll over to 00:00:00 as it is the start of a new day.
Not as designed but as programmed. If it were following the specs for 24 time it would roll over to 00:00This is functioning as designed.
Because that is the proper way it should be done. I.e.,Now, why do you want it to read 00:00?
The above roll over is from a RH5 system.Code:~ $ date Wed May 6 23:59:57 EDT 2009 ~ $ date Wed May 6 23:59:58 EDT 2009 ~ $ date Wed May 6 23:59:59 EDT 2009 ~ $ date Thu May 7 00:00:00 EDT 2009 ~ $ date Thu May 7 00:00:01 EDT 2009 ~ $ date Thu May 7 00:00:02 EDT 2009 ~ $ date Thu May 7 00:00:03 EDT 2009
- 05-06-2009 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Well from what I read
it could be debated as to whether showing 24:00 vs 0:00 is incorrect. "Where convenient" gives a lot of leeway to the programmer. Anyway, if you want the clock to display 0:00 of the next day, instead of 24:00 of the current day, then change the source code...Where convenient, the notation 24:00 may also be used to refer to midnight at the end of a given date—that is, 24:00 of some day is the same time as 00:00 of the following day.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-06-2009 #8
I see no debate here. Also from that same source you are reading;
Since time is does not stop the correct thing is to roll over to 00:00.Code:The notation 24:00 mainly serves to refer to the exact end of a day in a time interval.
Time marches on.
Another way to look at this is the seconds on the digital clock.
Do they switch to 60 or 00 after 59?
- 05-06-2009 #9Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Depends upon whether or not there is a leap-second that day...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-06-2009 #10
Good answer. lol


Reply With Quote
