Java Timestamp getCalendarTimestamp(Calendar cal)

Here you can find the source of getCalendarTimestamp(Calendar cal)

Description

get Calendar Timestamp

License

Apache License

Declaration

public static Timestamp getCalendarTimestamp(Calendar cal) 

Method Source Code

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

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Timestamp getCalendarTimestamp(Calendar cal) {
        return new Timestamp(cal.getTime().getTime());
    }//from  w w  w.  j  a  v  a  2s  .  c  o  m
}

Related

  1. floorAsDate(Timestamp time)
  2. fromDate(Timestamp timestamp)
  3. fromTimestamp(Timestamp timestamp)
  4. generateTimestamp()
  5. getBeforeDate(final Timestamp baseTime, final int period, final int unit)
  6. getCurentTimestamp()
  7. getCurFullTimestampStr()
  8. getCurrTimestamp()
  9. getCurTime2Timestamp()