Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert a Windows millis timestamp to Java millis

843829Oct 13 2003 — edited Apr 30 2004
Hi All,
does anybody have an idea on how to easily convert a millis timestamp returned by GetSystemTime to a Java timestamp used in java.util.Date?
From the Windows SDK documentation it seems that times are expressed in millisenconds since January 1, 1601, whilst Java uses millisecond since January 1, 1970 UTC.

Any idea?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2004
Added on Oct 13 2003
3 comments
301 views