Frozen Date objects?

Brendan Eich brendan at
Wed Jul 17 20:31:14 PDT 2013

Jonas Sicking wrote:
> And then there is the thread started at [3], and this particular email
> [4] which seems to conclude that Date objects in fact are just
> timestamps, and not timezone+timestamp.
> [3]
> [4]

First, this is not well-specified and implementations do extract Date 
"fields" from time number based on current timezone and DST offset 
(which can change).

Second, a Date is a pretty fat and inefficient way to represent a time 
number. Let the consumer decide whether to create a new object. Some web 
specs get this right.


More information about the es-discuss mailing list