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
ParseException
public static String formatDate(Date date, java.time.ZoneId zoneId, String pattern) throws ParseException
ParseException
public static String now(java.time.ZoneId zoneId, String pattern) throws ParseException
ParseException
Copyright © 2021. All rights reserved.