Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just 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

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    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
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  4. #4
    Linux Guru Rubberman's Avatar
    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
    Quote Originally Posted by b2bwild View Post
    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
    Thanks for the link. Amazing what you can find in the Wikipedia. So, either 0:00 or 24:00 is acceptable. Pick your poison I guess.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Every thing on Wiki you get is what you put there. so if you got something true and cool. just put it there.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by Rubberman View Post
    On a 24 hour clock, midnight is 2400 hours, hence the 24:00 display.
    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.

    This is functioning as designed.
    Not as designed but as programmed. If it were following the specs for 24 time it would roll over to 00:00

    Now, why do you want it to read 00:00?
    Because that is the proper way it should be done. I.e.,

    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
    The above roll over is from a RH5 system.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Linux Guru Rubberman's Avatar
    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
    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.
    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...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    I see no debate here. Also from that same source you are reading;

    Code:
    The notation 24:00 mainly serves to refer to the exact end of a day in a time interval.
    Since time is does not stop the correct thing is to roll over to 00:00.
    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?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  9. #9
    Linux Guru Rubberman's Avatar
    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!

  10. #10
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Good answer. lol

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...