problem of new Date(long), begin with Jan 01 01:00:00 CET 1970 ??

Posted by chun on Stack Overflow See other posts from Stack Overflow or by chun
Published on 2010-04-08T14:16:58Z Indexed on 2010/04/08 14:23 UTC
Read the original article Hit count: 241

Filed under:

the java doc describe that the constructor Date(long date) constructs a Date object using the given milliseconds time value since January 1, 1970, 00:00:00 GMT

actulely when i did new Date(0), the date is Jan 01 01:00:00 CET 1970

I don't know why it begin with 01h

© Stack Overflow or respective owner

Related posts about java