Java Calendar Time calendar2TimeStamp(Calendar cal)

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

Description

calendar Time Stamp

License

Apache License

Declaration

public static int calendar2TimeStamp(Calendar cal) 

Method Source Code

//package com.java2s;
/**/*w w  w  .j  a v  a2  s.  co m*/
 * Utils class for the stats
 * S23Y (2015). Licensed under the Apache License, Version 2.0.
 * Author: Thibaud Ledent
 */

import java.util.Calendar;

public class Main {
    public static int calendar2TimeStamp(Calendar cal) {
        return (int) (cal.getTimeInMillis() / 1000L);
    }
}

Related

  1. calendarFromString(String dateString, String timeString)
  2. calendarToGPSTime(Calendar calendar)
  3. ceilTime(Calendar calendar)
  4. clearCalendarTime(Calendar cal)