Today is a good day to code

Some Java Long to Time Stamp Conversions

Posted: December 31st, 1969 | Author: | Filed under: java, JavaScript, Programming | 1 Comment »

Recently I found myself in timezone hell, trying to convert back and forth from GMT to Local timezones, as well as the larger problem of trying to convert from a java long to ColdFusion’s strange ODBC date format. I looked around the web for some little tools to help, but I couldn’t find any conversion tools from long to a timestamp, so I could verify my conversions. So, I decided to write them. Here they are:

Input a Long to Convert Into a Time:

Converted Time

Current Time