public class DateUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CALDAV_DATE_TIME |
static ResourceBundle |
EXCHANGE_TO_STD_TZ
Standard to Exchange timezone mapping
|
static String |
GRAPH_DATE_TIME |
static String |
GRAPH_ZULU_DATE_TIME |
static String |
ISO8601_DATE_TIME |
protected static org.apache.log4j.Logger |
LOGGER |
static ResourceBundle |
STD_TO_EXCHANGE_TZ
Standard to Exchange timezone mapping
|
static TimeZone |
UTC |
static ResourceBundle |
VTIMEZONES |
static String |
YYYY_MM_DDTHH_MM_SS_SSSSSSS |
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDate(String sourceDate,
String sourceFormat,
String sourceTimezone,
String targetFormat,
String targetTimezone) |
static String |
convertDate(String sourceDate,
String sourceFormat,
TimeZone sourceTimezone,
String targetFormat,
TimeZone targetTimezone) |
static String |
convertDateFormat(String sourceDate,
String sourceFormat,
String targetFormat) |
static String |
convertISO8601ToZulu(String sourceDate) |
static String |
convertToUTCDateFormat(String sourceDate,
String sourceTimezone,
String sourceFormat,
String targetFormat) |
static String |
getDayOfWeek(String date) |
static String |
getExchangeTimeZone(String timezoneId)
Convert timezone to Exchange timezone.
|
static String |
getStandardTimeZone(String timezoneId)
Convert timezone id to standard timezone id.
|
static TimeZone |
getTimeZone(String timezoneId) |
static String |
getVTimeZone(String timezoneId) |
protected static final org.apache.log4j.Logger LOGGER
public static final String GRAPH_DATE_TIME
public static final String GRAPH_ZULU_DATE_TIME
public static final String CALDAV_DATE_TIME
public static final String ISO8601_DATE_TIME
public static final String YYYY_MM_DDTHH_MM_SS_SSSSSSS
public static final TimeZone UTC
public static final ResourceBundle STD_TO_EXCHANGE_TZ
public static final ResourceBundle EXCHANGE_TO_STD_TZ
public static final ResourceBundle VTIMEZONES
public static String getExchangeTimeZone(String timezoneId)
timezoneId - exchange or standard timezone idpublic static String getStandardTimeZone(String timezoneId)
timezoneId - exchange or standard timezone idpublic static String convertDate(String sourceDate, String sourceFormat, String sourceTimezone, String targetFormat, String targetTimezone) throws DavMailException
DavMailExceptionpublic static String convertDate(String sourceDate, String sourceFormat, TimeZone sourceTimezone, String targetFormat, TimeZone targetTimezone) throws DavMailException
DavMailExceptionpublic static String convertISO8601ToZulu(String sourceDate) throws DavMailException
DavMailExceptionpublic static String getDayOfWeek(String date) throws DavMailException
DavMailExceptionpublic static String convertDateFormat(String sourceDate, String sourceFormat, String targetFormat) throws DavMailException
DavMailExceptionpublic static String convertToUTCDateFormat(String sourceDate, String sourceTimezone, String sourceFormat, String targetFormat) throws DavMailException
DavMailExceptionCopyright © 2001–2026 MickaĆ«l Guessant. All rights reserved.