Java Timestamp Field getPresentTimeStamp()

Here you can find the source of getPresentTimeStamp()

Description

get Present Time Stamp

License

Open Source License

Declaration

public static Timestamp getPresentTimeStamp() 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

public class Main {
    public static Timestamp getPresentTimeStamp() {
        Timestamp ts = null;//ww w .j a va 2  s . co  m
        java.util.Date d = new java.util.Date();
        ts = new Timestamp(d.getTime());
        return ts;
    }
}

Related

  1. getNowTimeStamp()
  2. getNowTimeStamp()
  3. getOffsetDaysTime(Timestamp sysDate, int offsetDays)
  4. getPerformanceTime(Timestamp startTime)
  5. getPeriodExpiration(Timestamp tsStartDate, int iPeriodType, int iPeriodDuration)
  6. getRandomTimeBetweenTwoDates(Timestamp beginDate, Map context)
  7. getRandTimestamp(Random r)
  8. getRealCalendar(Timestamp time)
  9. getResultRowValueAsTimestamp(String valueName, Map resultRow)