Java Timestamp Field getSystemTimestamp()

Here you can find the source of getSystemTimestamp()

Description

get System Timestamp

License

Open Source License

Declaration

public static Timestamp getSystemTimestamp() 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static Timestamp getSystemTimestamp() {
        return new Timestamp(getSystemTime());
    }/* w  ww. j  a va2s . c  o m*/

    public static long getSystemTime() {
        return Calendar.getInstance().getTime().getTime();
    }
}

Related

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