public class TimeUtil
Modifiers | Name | Description |
---|---|---|
interface |
TimeUtil.TimerCallback |
Type Params | Return Type | Name and description |
---|---|---|
|
public static long |
getDateDiff(Date date1, Date date2, TimeUnit timeUnit) Get a diff between two dates |
|
public void |
run() |
|
public void |
run() |
|
public static Timer |
setInterval(TimeUtil.TimerCallback callback, long interval) |
|
public static Timer |
setTimeout(TimeUtil.TimerCallback callback, long timeout) |
Get a diff between two dates
date1
- the oldest datedate2
- the newest datetimeUnit
- the unit in which you want the diff