Independent Date and Time objects/ISO Dates

Lars T Hansen lth at acm.org
Tue May 15 14:19:50 PDT 2007


On 5/15/07, mkaply <mozilla at kaply.com> wrote:
>
> In my work with microformats, I'm finding that the Date object is not very
> useful for representing a date without a time. Has any thought been given to
> having separate Date and Time objects?

Some minor discussion last year but nothing serious.  The Date object
represents a time stamp in milliseconds relative to a known time, so
really represents both date and time.  Why is this not adequate?

> In addition, has any thought been giving to allowing the construction of
> Date objects using ISO dates or allowing Date objects to output as ISO
> Dates.

A subset of ISO date format has been incorporated into the proposed
revision, with a requirement that Date.parse must be able to parse it
and Date.toISOString must generate it.

http://developer.mozilla.org/es4/proposals/date_and_time.html

--lars

>
> Thank you.
>
> Mike Kaply
> --
> View this message in context: http://www.nabble.com/Independent-Date-and-Time-objects-ISO-Dates-tf3760992.html#a10630855
> Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com.
>
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es4-discuss
>



More information about the Es4-discuss mailing list