Java Timestamp fromDate(Timestamp timestamp)

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

Description

from Date

License

Apache License

Declaration

public static Date fromDate(Timestamp timestamp) 

Method Source Code


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

import java.sql.Timestamp;
import java.util.Date;

public class Main {
    public static Date fromDate(Timestamp timestamp) {
        if (timestamp == null) {
            return null;
        }/*from w  ww  .  j a va2s  .c o m*/
        return new Date(timestamp.getTime());
    }
}

Related

  1. durationBetween(Timestamp startedAt, Timestamp completedAt)
  2. encodeTimestamp(Timestamp timestamp)
  3. endOfMonth(java.sql.Timestamp dd)
  4. extractDateSystemTimeStamp()
  5. floorAsDate(Timestamp time)
  6. fromTimestamp(Timestamp timestamp)
  7. generateTimestamp()
  8. getBeforeDate(final Timestamp baseTime, final int period, final int unit)
  9. getCalendarTimestamp(Calendar cal)