Here you can find the source of addSeconds(Date date1, long secs)
Parameter | Description |
---|---|
date1 | a parameter |
secs | a parameter |
public static Date addSeconds(Date date1, long secs)
//package com.java2s; import java.util.*; public class Main { /**//from w ww . ja v a 2 s . c om * @param date1 * @param secs * * @return */ public static Date addSeconds(Date date1, long secs) { return new Date(date1.getTime() + (secs * 1000)); } }