Android Calendar to Timestamp Convert Calendar2Timestamp(Calendar c)

Here you can find the source of Calendar2Timestamp(Calendar c)

Description

Calendar Timestamp

Declaration

public static Timestamp Calendar2Timestamp(Calendar c) 

Method Source Code

//package com.java2s;
import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static Timestamp Calendar2Timestamp(Calendar c) {
        return new Timestamp(c.getTimeInMillis());
    }/*from   w  w  w.j a v a  2s  .  c om*/
}

Related

  1. convertToTimeStamp(Calendar cal)
  2. convertToTimeStamp(Calendar time, boolean showSeconds)
  3. nowAsTimestamp()