Java Timestamp calendar2Timestamp(Calendar c)

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

Description

calendar Timestamp

License

Open Source License

Declaration

public static Timestamp calendar2Timestamp(Calendar c) 

Method Source Code

//package com.java2s;
/**/*  w ww.ja  v a2  s.  com*/
 * Copyright &copy; 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Timestamp calendar2Timestamp(Calendar c) {
        return new Timestamp(c.getTimeInMillis());
    }
}

Related

  1. afterMinutes(Timestamp date, long min)
  2. argMapTimestamp(Map argMap, Map argMapNotUsed, String key)
  3. beforeTimestamp2Safety(Timestamp ts1, Timestamp ts2)
  4. between(Timestamp t1, Timestamp t2)
  5. calcRealTime(Timestamp beginTime, Timestamp endTime)
  6. calendarToTimestamp(java.util.Calendar inCal)
  7. calToTimeStamp(Calendar cal)
  8. changeDate(Timestamp date, Integer amount, Integer unit)
  9. checkTimestamp(String sval)