Hi,

I'm experiencing strange behavior for some particular date (JDK and Joda is
giving different date, although the millisecond given is the same).

For example:
long ms = -2209024080000L;
DateTime testJoda = new DateTime(ms);
System.out.println(testJoda);
Date testJdk = new Date(ms);
System.out.println(testJdk);

The above code will give this result:
in Joda: 1899-12-31T20:54:04.000+06:42:04 (the time is 20:54)
in JDK: Sun Dec 31 21:12:00 ICT 1899 (the time is 21:12)

Why this strange thing happens? (the time is different)

Thanks in advance.

Best regards,
Yohan Yudanara
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to