public class DateUtil
| Modifiers | Name | Description |
|---|---|---|
static DecimalFormat |
SECOND_FORMAT |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static LocalDateTime |
convertIsoDateTimeStringToDate(String aDateString) |
|
public static String |
convertIsoDateTimeToString(LocalDateTime dateTime) |
|
public static String |
getDateTimeFormatted(long timeValue) |
|
public static String |
getDateTimeFormatted(long timeValue, DateTimeFormatter format) |
|
public static String |
getElapsedTime(long startTime, long endTime) |
|
public static String |
getISOLocalDateTimeFormatted(long timeValue) |
|
public static String |
getISOLocalDateTimeFormattedWithTimezone(long timeValue)Formats the given epoch-millisecond timestamp as a datetime string using the system's default timezone offset (e.g., 21-03-2024T08:26:40 +07:00). |
|
public static String |
getISOLocalDateTimeFormattedWithTimezone(long timeValue, ZoneId zoneId)Formats the given epoch-millisecond timestamp as a datetime string using the specified timezone (e.g., 21-03-2024T08:26:40 +07:00). |
Formats the given epoch-millisecond timestamp as a datetime string using
the system's default timezone offset (e.g., 21-03-2024T08:26:40 +07:00).
timeValue - epoch time in millisecondsdd-MM-yyyy'T'HH:mm:ss XXX pattern Formats the given epoch-millisecond timestamp as a datetime string using
the specified timezone (e.g., 21-03-2024T08:26:40 +07:00).
timeValue - epoch time in millisecondszoneId - the timezone to apply when formattingdd-MM-yyyy'T'HH:mm:ss XXX pattern