Get Date from timestamp in Groovy -
As trivial it may seem that, I do not find a way to convert a Unix timestamp into a Groovy to date object can.
I should try with My first attempt was Then I have read That Java timestamps use milliseconds, so I should use the What is the correct way to convert a timestamp to a date? What if I want to specify the time zone to work? The problem is that he is going with integers, then creating multiplication is causing. . Try: or 1280512800 , which should be
Fri, 30 July 2010 18:00:00 GMT
New Date (1280512800) / False, Guru becomes 15 January 20:41:52 CET 1970
new date ((1280512800 * 1000)) / long duration is irrelevant in groove, in any case I // Thursday, January 08 03:09:05 C ET 1970
New date (1280512800 L * 1000)
New Date (((Long (1280512800)) * 1000)
Comments
Post a Comment