MutterCorp
MutterCorpNotice · Notícias
Programação·

Date Mixes an Instant with Wall-Clock Fields. Temporal Gives Each a Type.

Date looks like a calendar object because you can pass a year, a month, and a clock time, then read getHours(). Under that surface, ECMA-262 stores something else. In the ECMAScript 2027 Language Specification (section 21.4.1.1, Time Values and Time Range), a finite time value is "an integral Number representing an instant in time to millisecond precision," measured from "an epoch of midnight at the beginning of 1 January 1970 UTC." MDN's Temporal overview is blunt about the mismatch: "Date obj…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes