Java Timestamp timestamp()

Here you can find the source of timestamp()

Description

timestamp

License

Open Source License

Declaration

public static Timestamp timestamp() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.joda.time.DateTime;

import java.sql.Timestamp;

public class Main {
    public static Timestamp timestamp() {
        return new Timestamp(DateTime.now().getMillis());
    }/*w ww.  ja v  a2 s. c o m*/
}

Related

  1. StrToDateTimeFormat(String timestampStr,String pattern)
  2. strToTimestamp(String date)
  3. strToTimestamp(String dateStr)
  4. strToTimestamp(String i_Today, String i_Hour, String i_Minute)
  5. StrToTimestamp(String timestampStr,String pattern)
  6. timestamp(int year, int month, int day, int hour, int minute, int second, int nanosecond)
  7. timestamp(Long param)
  8. timestampInMs()
  9. timestampIntToTimestamp(long timestampInt)