Java Timestamp Field getNowTimestamp()

Here you can find the source of getNowTimestamp()

Description

get Now Timestamp

License

Apache License

Declaration

public static java.sql.Timestamp getNowTimestamp() 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public static java.sql.Timestamp getNowTimestamp() {
        Calendar cal1 = Calendar.getInstance();
        return new java.sql.Timestamp(cal1.getTimeInMillis());
    }// w  ww  .ja va2 s.c  o m
}

Related

  1. getNextDayStart(java.sql.Timestamp stamp)
  2. getNextTimestamp(Timestamp previous, long nrDays)
  3. getNotNullTimestampValue(String timestamp, String format)
  4. getNowTimeStamp()
  5. getNowTimeStamp()
  6. getOffsetDaysTime(Timestamp sysDate, int offsetDays)
  7. getPerformanceTime(Timestamp startTime)
  8. getPeriodExpiration(Timestamp tsStartDate, int iPeriodType, int iPeriodDuration)
  9. getPresentTimeStamp()