And by the time of running bench(diffGetTime) the work has finished.
That may lead to wrong results.
An object with some or all of the following properties: localeMatcher, the locale matching algorithm to use.
The month count starts with 0 (Jan up to 11 (Dec).The extended year 0 is considered positive and therefore prefixed with a plus sign.Possible values are "numeric "2-digit".The following are valid: "10 "10:11 and "10:11:12".Function diffSubtract(date1, date2) return date2 - date1; / or function diffGetTime(date1, date2) return tTime - tTime These two do exactly the same thing, but one of them uses an explicit tTime to get the date in ms, and the other one relies on a date-to-number.See the following paragraphs for information about the use of this property.The format is as follows: yyyy-MM-ddthh:mm:ss.Using getTime is so much faster!Date auto-corrects itself when out-of-range components are set.
The Date object will do the rest: let date new Date(2016, 1, 28 tDate 2 alert( date / That feature is often used to get the date after the given period of time.
Writeln(new / Specifies a non-ISO Long date.