Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q550 Is there a problem with how the MacOS gives up its date/time?

You are here: irt.org | FAQ | JavaScript | Date | Q550 [ previous next ]

Yes. I can't remember the exact details but the start point (i.e. year dot) on MacOs is not the real start point.

Dates are held as the number of milliseconds since midnight GMT on January 1st, 1970 (year dot).

You can get the date for year dot with:

dot = new Date(0);

©2018 Martin Webb