Search code examples
javatimestamplong-integer

Java : convert long to Timestamp


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?


Solution

  • The constructor is doing that:

    Timestamp(long time)