Java Timestamp Field getDateTime(Timestamp timestamp)

Here you can find the source of getDateTime(Timestamp timestamp)

Description

get Date Time

License

LGPL

Declaration

public static DateTime getDateTime(Timestamp timestamp) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.sql.Timestamp;

import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.chrono.GJChronology;

public class Main {
    public static DateTime getDateTime(Timestamp timestamp) {
        return new DateTime(timestamp, GJChronology.getInstance(DateTimeZone.UTC));
    }// www.j a va2s.  co m
}

Related

  1. getDateString(java.sql.Timestamp ts)
  2. getDateString(Timestamp time, String pattern)
  3. getDateTime(Timestamp argRenDt)
  4. getDateTimeFromSqlTimestamp(Timestamp timestamp)
  5. getDateTimeFromTimeStamp(Timestamp timestamp)
  6. getDateTimestamp(ResultSet rs, String columnLabel)
  7. getDateTimeStr(Timestamp timestamp)