Here you can find the source of minusOneSecond(Timestamp now)
public static Timestamp minusOneSecond(Timestamp now)
//package com.java2s; /**// w w w .j av a2s . c o m * Copyright (c) 2015 SK holdings Co., Ltd. All rights reserved. * This software is the confidential and proprietary information of SK holdings. * You shall not disclose such confidential information and shall use it only in * accordance with the terms of the license agreement you entered into with SK holdings. * (http://www.eclipse.org/legal/epl-v10.html) */ import java.sql.Timestamp; public class Main { public static Timestamp minusOneSecond(Timestamp now) { return new Timestamp(now.getTime() - 1000); } }