Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'See a possible Y2K bug in shutdown' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See a possible Y2K bug in shutdown
Authored by: greggo on Sep 02, '03 11:12:59AM

The UNIX date is read in seconds from 1/1/1970. The date you are using "0308210940" converts to "Monday, October 8, 1979 1:09:00 AM" according to this web page...

http://dan.drydog.com/unixdatetime.html

There is an option to set the the date to the current date on the above page. The decimal equivalent of todays date is "1062514999". I'm not sure why 1903 is coming up.



[ Reply to This | # ]
The Mac epoch is different
Authored by: grrl_geek on Sep 02, '03 11:30:30AM

I believe the Mac epoch (time "0") --- at least traditionally --- is in 1904, whereas the Unix one is 1970.

---
~~~~~~~~~~~~~
Sinker sucker socks pants, apocryphal awry!



[ Reply to This | # ]
The Mac epoch is different
Authored by: srowen on Sep 02, '03 02:12:46PM

The epoch used by the classic Mac OS was indeed based on a start date in 1904, but OS X's BSD roots mean that its epoch, when it comes up, is the usual 1970 one seen in Unix variants.

Either way this is not the heart of the issue the poster found with shutdown.



[ Reply to This | # ]
See a possible Y2K bug in shutdown
Authored by: z123 on Sep 02, '03 11:57:04AM

If you'll notice, the time it was set to shutdown was correct *except* for the year. It is not asking for UNIX time; simply a bug in shutdown.



[ Reply to This | # ]
See a possible Y2K bug in shutdown
Authored by: srowen on Sep 02, '03 02:09:59PM

The input is not interpreted as a number of seconds since the epoch -- see the man page excerpt quoted in the original post:

"... specify a future time in one of two formats: +number, or yymmddhhmm ..."

The issue is that year is specified with only two digits.



[ Reply to This | # ]
See a possible Y2K bug in shutdown
Authored by: greggo on Sep 02, '03 02:28:37PM

Sorry all, it looked like a unix date when I first read the post this morning (no coffee yet). I read the man shutdown page and seen that the date is in the correct format.



[ Reply to This | # ]