Java Timestamp Field getSystemTimestamp()

Here you can find the source of getSystemTimestamp()

Description

Returns the current timestamp.

License

Apache License

Return

Timestamp

Declaration

public static Timestamp getSystemTimestamp() 

Method Source Code


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

import java.sql.Timestamp;

public class Main {
    /**//from   w w w . j  a va2 s.co  m
     * Returns the current timestamp.
     *
     * @return Timestamp
     */
    public static Timestamp getSystemTimestamp() {
        return new Timestamp(System.currentTimeMillis());

    }
}

Related

  1. getSqlTimestampFromShortDate(String date)
  2. getStamp(Timestamp timestamp)
  3. getStringToTimestamp(String str)
  4. getstrTimestamp(String datetime)
  5. getSysDateTimestamp()
  6. getSystemTimestamp()
  7. getWeekEnd(Timestamp stamp, TimeZone timeZone, Locale locale)
  8. getWeekEnd(Timestamp stamp, TimeZone timeZone, Locale locale)
  9. getWochentag(java.util.Locale locale, java.sql.Timestamp tDatum)