I know, how to convert a Timestamp to a long, with the getTime() method.
Timestamp
getTime()
Is there a method that convert a long to a TimeStamp?
long
TimeStamp
The constructor is doing that:
Timestamp(long time)