Link to ECMAScript epoch from Date.now()
Summary
Replaces the text "January 1, 1970 00:00:00 UTC" on the Date.now() page with a link to the ECMAScript epoch.
Motivation
This allows the reader to easily find more information about the epoch and makes this page consistent with Date.prototype.getTime(). I noticed this inconsistency when I was looking at both pages to see if these functions return the same kind of timestamp and had to click through to the epoch page to be sure that they were referencing the same time.
Supporting details
Related issues
Metadata
- [ ] Adds a new document
- [ ] Rewrites (or significantly expands) a document
- [ ] Fixes a typo, bug, or other error
I guess this is blocked on https://github.com/mdn/content/pull/17096?
Yes, it is
Preview URLs
- /en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime
- /en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
- /en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
External URLs (3)
URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Title: Date
- https://en.wikipedia.org/wiki/Unix_time (1 time) (Note! This may be a new URL 👀)
- https://tc39.es/ecma262/ (1 time) (Note! This may be a new URL 👀)
- https://tc39.es/ecma262/multipage/numbers-and-dates.html (1 time) (Note! This may be a new URL 👀)
(this comment was updated 2022-11-21 20:53:23.908715)
I've opted for the term "epoch" instead of "ECMAScript epoch". (In the end I did not use any content from #17096.) It's a pretty minor change, but would be helpful to get a second pair of eyes. @wbamberg?