Date.prototype.format

2011-05-27 Thread Marc Harter
This may of been thrown though the ringer already but I thought I'd ask. http://blog.stevenlevithan.com/archives/date-time-format This is some awesome work on date formatting. What do we think about having a native Date Format implementation in es.next? Complications? Seems like this a very

Re: Date.prototype.format

2011-05-27 Thread John Tamplin
On Fri, May 27, 2011 at 11:48 AM, Marc Harter wav...@gmail.com wrote: This may of been thrown though the ringer already but I thought I'd ask. http://blog.stevenlevithan.com/archives/date-time-format This is some awesome work on date formatting. What do we think about having a native Date

Re: Date.prototype.format

2011-05-27 Thread Marc Harter
On Fri, May 27, 2011 at 11:08 AM, John Tamplin j...@google.com wrote: On Fri, May 27, 2011 at 11:48 AM, Marc Harter wav...@gmail.com wrote: This may of been thrown though the ringer already but I thought I'd ask. http://blog.stevenlevithan.com/archives/date-time-format This is some awesome

Re: Date.prototype.format

2011-05-27 Thread John Tamplin
On Fri, May 27, 2011 at 12:21 PM, Marc Harter wav...@gmail.com wrote: Note that it is rarely useful to format with a fixed pattern, because different locales have different norms for ordering of the fields, separators, etc. By fixed pattern do you mean like d.format('YY/mm/dd')? If so,

Re: Date.prototype.format

2011-05-27 Thread Adam Shannon
I like the idea of putting .format() on the Date; it would allow for quick and easy access to a handy formatter. However, would it make more sense to use the set that php uses to format dates?[0] I would assume that developers would be more familiar with that. [0]:

Re: Date.prototype.format

2011-05-27 Thread John Tamplin
On Fri, May 27, 2011 at 4:59 PM, Adam Shannon a...@ashannon.us wrote: I like the idea of putting .format() on the Date; it would allow for quick and easy access to a handy formatter. However, would it make more sense to use the set that php uses to format dates?[0] I would assume that