I need to convert a unix timestamp to a date object. I tried this:
java.util.Date time = new java.util.Date(timeStamp);
Timestamp value
Date's constructor expects the timeStamp value to be in milliseconds. Multiply your timestamp's value with 1000, then pass it to the constructor.