public final class TimeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Long |
currentEpochMillis() |
static Long |
dateAsLong(String date) |
static Long |
toEpochMillis(String date,
Integer totalSeconds,
DateTimeFormatter formatter) |
static Long |
toEpochMillis(String date,
Integer totalSeconds,
String format) |
static Long |
toEpochMillis(String date,
ZoneId zoneId,
DateTimeFormatter formatter) |
static Long |
toEpochMillis(String date,
ZoneId zoneId,
String format) |
static String |
toStringFormat(Long epochMillis,
Integer totalSeconds,
String format) |
static String |
toStringFormat(Long epochMillis,
ZoneId zoneId,
String format) |
static String |
toStringFormat(TemporalAccessor temporal,
String format) |
static ZonedDateTime |
toZonedDateTime(Long epochMillis,
Integer totalSeconds) |
static ZonedDateTime |
toZonedDateTime(Long epochMillis,
ZoneId zoneId) |
public static Long toEpochMillis(String date, Integer totalSeconds, DateTimeFormatter formatter)
public static Long toEpochMillis(String date, ZoneId zoneId, DateTimeFormatter formatter)
public static ZonedDateTime toZonedDateTime(Long epochMillis, ZoneId zoneId)
public static ZonedDateTime toZonedDateTime(Long epochMillis, Integer totalSeconds)
public static String toStringFormat(Long epochMillis, Integer totalSeconds, String format)
public static String toStringFormat(TemporalAccessor temporal, String format)
public static Long currentEpochMillis()
Copyright © 2024. All rights reserved.