Java Timestamp Create createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)

Here you can find the source of createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour, final int aMinute, final int aSecond)

Description

create Timestamp

License

Apache License

Declaration

public static Timestamp createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour,
        final int aMinute, final int aSecond) 

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 createTimestamp(final int aYear, final int aMonth, final int aDate, final int aHour,
            final int aMinute, final int aSecond) {
        Calendar c = Calendar.getInstance();
        c.set(aYear, aMonth, aDate, aHour, aMinute, aSecond);
        return new Timestamp(c.getTimeInMillis());
    }//from   ww w  .  j a  v a2s.c  om
}

Related

  1. createEtag(String cookieId, Date timestamp)
  2. createTimeStamp()
  3. createTimestamp()
  4. createTimeStamp()
  5. createTimeStamp()
  6. createTimestamp(final int year, final int month, final int day, final int hour, final int minute, final int second)
  7. createTimestamp(int month, int day)
  8. createTimestampedZipFilename(String prefix)
  9. createTimestampFormat()