Here you can find the source of getDateTimeFromTimeStamp(Timestamp timestamp)
public static DateTime getDateTimeFromTimeStamp(Timestamp timestamp)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; public class Main { public static DateTime getDateTimeFromTimeStamp(Timestamp timestamp) { return new DateTime(timestamp.getTime(), DateTimeZone.UTC); }/* w ww . jav a 2 s . co m*/ }