Java Timestamp Create getTimestampBeforeMs(long someMs)

Here you can find the source of getTimestampBeforeMs(long someMs)

Description

get Timestamp Before Ms

License

Open Source License

Declaration

public static Timestamp getTimestampBeforeMs(long someMs) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

public class Main {
    public static Timestamp getTimestampBeforeMs(long someMs) {
        return new Timestamp(System.currentTimeMillis() - someMs);
    }/*from   w  w  w. ja va2 s.c o m*/
}

Related

  1. getTimestamp(String time, String pattern)
  2. getTimestamp2()
  3. getTimeStampAsString(Timestamp formatTime)
  4. getTimestampAsString(Timestamp tsTimestamp)
  5. getTimestampAtMidnightForDaysAgo(int days)
  6. getTimeStampByFormat(String style)
  7. getTimestampDate(long timestamp)
  8. getTimestampDate(Timestamp ts)
  9. getTimestampDateDotTime()