ch-gilbert / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Recognizing Milliseconds #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. on datejs.com enter: 2010-05-26 18:53:37.297

What is the expected output? What do you see instead?
Wednesday, May 26, 2010 6:53:37 PM

What version of the product are you using? On what operating system?
Alpha-1

Please provide any additional information below.
While it does recognize the date when milliseconds are not present, it's 
not able to build a date with it. Possible to recognize the date and ignore 
maybe the milliseconds?

Original issue reported on code.google.com by nicktulip on 2 Jun 2010 at 4:21

GoogleCodeExporter commented 9 years ago
Additionally, calling
    Date.parseExact('2010-05-26 18:53:37.297', 'yyyy-MM-dd HH:mm:ss.S');

Does not work either. The returned value is null. In this case, I would expect 
the milliseconds to be parsed into the Date object since the native javascript 
object has millisecond precision.

Original comment by barbedwi...@gmail.com on 28 Dec 2010 at 4:36

GoogleCodeExporter commented 9 years ago
works in the current build on my fork: https://github.com/abritinthebay/datejs/

Original comment by gwildsm...@bleacherreport.com on 17 Sep 2013 at 9:45