We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Converting Dates into epoch time
Page Index Toggle Pages: 1
Converting Dates into epoch time (Read 645 times)
Converting Dates into epoch time
Apr 5th, 2010, 9:19am
 
I was wondering if anyone here has ever written an epoch time converter?

I have a tab delimited file that has date as mm/dd/yyyy and I'm trying to convert it to epoch time, so, I can create a timeline that is suppose approximate on the screen by putting it through the range function.

Thanks in advance.
Re: Converting Dates into epoch time
Reply #1 - Apr 5th, 2010, 9:59am
 
No need to write something from scratch: have a look at the Java DateFormat (and if need be Calendar) class.  I suspect you'll find what you need there Wink
Page Index Toggle Pages: 1