Java Timestamp Field getDateTimeFromTimeStamp(Timestamp timestamp)

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

Description

get Date Time From Time Stamp

License

Open Source License

Declaration

public static DateTime getDateTimeFromTimeStamp(Timestamp timestamp) 

Method Source Code


//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*/
}

Related

  1. getDateString(java.sql.Timestamp ts)
  2. getDateString(Timestamp time, String pattern)
  3. getDateTime(Timestamp argRenDt)
  4. getDateTime(Timestamp timestamp)
  5. getDateTimeFromSqlTimestamp(Timestamp timestamp)
  6. getDateTimestamp(ResultSet rs, String columnLabel)
  7. getDateTimeStr(Timestamp timestamp)
  8. getDateTimeString(java.sql.Timestamp ts)
  9. getDayBorder(Timestamp dateTime, Timestamp timeSlot, boolean end)