timrwood/moment — pull request #248 by stirno (2012-04-03 03:35:30+00:00)
Title: Milliseconds formatting, precise ISO times

Milliseconds formatting in moment(date, format), support for ISO dates that supply extremely precise times (.000001 seconds).

Example of a date like this would be: 2012-04-02T22:25:45.276419-08:00

This comes from JSON.NET's serialization of DateTimeOffset objects. Enabled this format to function when passed in to the moment(date) constructor as a valid ISO format.

Results:

> moment("2012-04-02T22:25:45.276419-08:00").toString()

Before:
"Thu Apr 05 2012 09:44:45 GMT-0500 (Central Daylight Time)"

After:
"Tue Apr 03 2012 01:25:45 GMT-0500 (Central Daylight Time)"