Skip to main content

Module date

Module date 

Source
Expand description

JavaScript Date (global constructor). A Date is a plain object tagged @@native = "Date" whose time value (milliseconds since the Unix epoch, or NaN for an invalid date) lives in a hidden @@ms field.

Only the UTC-based surface HTTP libraries actually exercise is implemented — getTime/valueOf, toISOString/toUTCString/toString, the UTC field getters, plus the statics Date.now/Date.parse/Date.UTC. Local-timezone getters alias the UTC ones (node-js runs as if TZ=UTC), which is the correct answer for the machine-readable date headers express/send/fresh produce.

Constants§

STATIC_METHODS

Functions§

construct
new Date(...).
instance_call
Date instance methods (all treated as UTC — see the module note).
static_call
Date.now() / Date.parse(str) / Date.UTC(...).