Java Timestamp newTimestamp()

Here you can find the source of newTimestamp()

Description

Create a new Timestamp.

License

Open Source License

Declaration

public static java.sql.Timestamp newTimestamp() 

Method Source Code

//package com.java2s;

public class Main {
    /**//from   ww  w  . j a v a 2s.c o  m
     * Create a new Timestamp.
     */
    public static java.sql.Timestamp newTimestamp() {
        return new java.sql.Timestamp(System.currentTimeMillis());
    }
}

Related

  1. max(Timestamp ts1, Timestamp ts2)
  2. maxTime(Timestamp dayTime)
  3. minusHours(Timestamp ts, int hours)
  4. minusOneSecond(Timestamp now)
  5. newDate(Timestamp time)
  6. newTimestamp(Date date)
  7. normalizeDateTimeAsTimestamp(Date changedDate, Locale locale)
  8. nowAsTimestamp()
  9. nowUtcTimestamp()