public class DateUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getDate(long timeMs)
Returns a date object from a unix timestamp
|
static long |
getNow()
Returns the current unix timestamp
|
static long |
getSeconds(java.util.Date date)
Returns a unix timestamp from a date object
|
public static java.util.Date getDate(long timeMs)
timeMs
- the unix timestamppublic static long getSeconds(java.util.Date date)
date
- the date objectpublic static long getNow()