Java Timestamp timestampInMs()

Here you can find the source of timestampInMs()

Description

timestamp In Ms

License

Open Source License

Declaration

public static long timestampInMs() 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static long timestampInMs() {
        return getTimestamp().getTime();
    }/* ww  w . j  av a2 s . c  o  m*/

    public static Date getTimestamp() {
        return new java.sql.Timestamp(Calendar.getInstance().getTime().getTime());
    }
}

Related

  1. strToTimestamp(String i_Today, String i_Hour, String i_Minute)
  2. StrToTimestamp(String timestampStr,String pattern)
  3. timestamp()
  4. timestamp(int year, int month, int day, int hour, int minute, int second, int nanosecond)
  5. timestamp(Long param)
  6. timestampIntToTimestamp(long timestampInt)
  7. timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2)
  8. TimeStampMonthDayYear(Timestamp timestamp)
  9. TimestampNow()