Package org.xipki.util
Class DateUtil
- java.lang.Object
-
- org.xipki.util.DateUtil
-
public class DateUtil extends Object
Utility class for the date conversion.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstantgetLastMsOfDay(ZonedDateTime cal)static intgetYyyyMMdd(ZonedDateTime cal)static InstantparseUtcTimeyyyyMMdd(String utcTime)static InstantparseUtcTimeyyyyMMddhhmmss(String utcTime)static longtoEpochSecond(Date date)static StringtoUtcTimeyyyyMMdd(Instant time)static StringtoUtcTimeyyyyMMddhhmmss(Instant time)
-
-
-
Method Detail
-
getLastMsOfDay
public static Instant getLastMsOfDay(ZonedDateTime cal)
-
getYyyyMMdd
public static int getYyyyMMdd(ZonedDateTime cal)
-
toEpochSecond
public static long toEpochSecond(Date date)
-
-