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 |
protected static org.apache.log4j.Logger |
LOGGER |
static ResourceBundle |
STD_TO_EXCHANGE_TZ
Standard to Exchange timezone mapping
|
static ResourceBundle |
VTIMEZONES |
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDateFormat(String sourceDate,
String sourceFormat,
String targetFormat) |
static String |
convertToUTCDateFormat(String sourceDate,
String sourceTimezone,
String sourceFormat,
String targetFormat) |
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 CALDAV_DATE_TIME
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 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.