public class TimezoneHelper extends Object
| Constructor and Description |
|---|
TimezoneHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDate(Date date,
java.time.ZoneId zoneId,
String pattern) |
static long |
getRezonedEpoch(Date incomingDate,
java.time.ZoneId zoneId) |
static String |
getUtcOffset(java.time.ZoneId zoneId,
Date referenceDate) |
static String |
now(java.time.ZoneId zoneId,
String pattern) |
public static long getRezonedEpoch(Date incomingDate, java.time.ZoneId zoneId) throws ParseException
ParseExceptionpublic static String formatDate(Date date, java.time.ZoneId zoneId, String pattern) throws ParseException
ParseExceptionpublic static String now(java.time.ZoneId zoneId, String pattern) throws ParseException
ParseExceptionCopyright © 2022. All rights reserved.