From 6c96534ffc5463a1788153382b84db8afd0702f5 Mon Sep 17 00:00:00 2001 From: Jason Ferrier Date: Wed, 5 Jun 2024 10:48:09 -0600 Subject: [PATCH] Make references to epoch consistent (#33943) Update index.md Made the wording and formatting more consistent regarding references to the epoch. --- .../javascript/reference/global_objects/date/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/en-us/web/javascript/reference/global_objects/date/index.md b/files/en-us/web/javascript/reference/global_objects/date/index.md index bea63d04cb8a3f9..5f62c2e78bd25f0 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/index.md @@ -180,11 +180,11 @@ See the [Formats of `toString` method return values](#formats_of_tostring_method ## Static methods - {{jsxref("Date.now()")}} - - : Returns the numeric value corresponding to the current time—the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC, with leap seconds ignored. + - : Returns the numeric value corresponding to the current time—the number of milliseconds since January 1, 1970 00:00:00 UTC, with leap seconds ignored. - {{jsxref("Date.parse()")}} - - : Parses a string representation of a date and returns the number of milliseconds since 1 January, 1970, 00:00:00 UTC, with leap seconds ignored. + - : Parses a string representation of a date and returns the number of milliseconds since January 1, 1970 00:00:00 UTC, with leap seconds ignored. - {{jsxref("Date.UTC()")}} - - : Accepts the same parameters as the longest form of the constructor (i.e. 2 to 7) and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC, with leap seconds ignored. + - : Accepts the same parameters as the longest form of the constructor (i.e. 2 to 7) and returns the number of milliseconds since January 1, 1970 00:00:00 UTC, with leap seconds ignored. ## Instance properties @@ -212,7 +212,7 @@ These properties are defined on `Date.prototype` and shared by all `Date` instan - {{jsxref("Date.prototype.getSeconds()")}} - : Returns the seconds (`0` – `59`) in the specified date according to local time. - {{jsxref("Date.prototype.getTime()")}} - - : Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC. (Negative values are returned for prior times.) + - : Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970 00:00:00 UTC. (Negative values are returned for prior times.) - {{jsxref("Date.prototype.getTimezoneOffset()")}} - : Returns the time-zone offset in minutes for the current locale. - {{jsxref("Date.prototype.getUTCDate()")}} @@ -248,7 +248,7 @@ These properties are defined on `Date.prototype` and shared by all `Date` instan - {{jsxref("Date.prototype.setSeconds()")}} - : Sets the seconds for a specified date according to local time. - {{jsxref("Date.prototype.setTime()")}} - - : Sets the {{jsxref("Date")}} object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC. Use negative numbers for times prior. + - : Sets the {{jsxref("Date")}} object to the time represented by the number of milliseconds since January 1, 1970 00:00:00 UTC. Use negative numbers for times prior. - {{jsxref("Date.prototype.setUTCDate()")}} - : Sets the day of the month for a specified date according to universal time. - {{jsxref("Date.prototype.setUTCFullYear()")}}