Java : convert long to Timestamp

Adam Sh picture Adam Sh · May 14, 2012 · Viewed 71.4k times · Source

I know, how to convert a Timestamp to a long, with the getTime() method.

Is there a method that convert a long to a TimeStamp?

Answer

evanwong picture evanwong · May 14, 2012

The constructor is doing that:

Timestamp(long time)