Here you can find the source of toDateTime(Timestamp value)
public static DateTime toDateTime(Timestamp value)
//package com.java2s; //License from project: Apache License import org.joda.time.*; import java.sql.Timestamp; public class Main { /**// ww w . j a v a2s .co m * Null-safe method of converting a SQL Timestamp into a DateTime that * it set specifically to be in UTC. * <br> * NOTE: The timestamp also should be in UTC. * @return A UTC DateTime */ public static DateTime toDateTime(Timestamp value) { if (value == null) { return null; } else { return new DateTime(value.getTime(), DateTimeZone.UTC); } } }