I’m about to implement a small program where i need the elapsed seconds since 00:00:00 UTC on January 1, 1970 to 00:00:00 UTC on June 22, 2009. Could anyone please point me in the right direction, as to how to achieve this.
Share
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.
If you want to parse String representation of Date, take a look at SimpleDateFormat. Although it was suggested in one answer, you should avoid using static instances as they are not thread safe.