The java Date class expects a long:
But the current Date/time to millisecond precision is too large to be held in a long.
Hello.java:14: integer number too large: 1335250803004
long l = 1335250803004;
So how on earth does this work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A milliseconds value represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT [..]
So it is able to hold Dates upto