Thursday, August 20, 2009

JAVA - Convert Unixtimestamp to java.util.date

Solution that i got finally:

E.g.
long unixtime = new Long(1250740910) * 1000;
Date messageTime = new Date(unixtime);


*p.s. 1250740910 - the unixtimestamp


No comments:

Post a Comment