Here you can find the source of getTimestampBeforeMs(long someMs)
public static Timestamp getTimestampBeforeMs(long someMs)
//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*/ }