public class DateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Date[] |
EMPTY_DATES |
| Constructor and Description |
|---|
DateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDA(TimeZone tz,
Date date) |
static StringBuilder |
formatDA(TimeZone tz,
Date date,
StringBuilder toAppendTo) |
static String |
formatDT(TimeZone tz,
Date date) |
static String |
formatDT(TimeZone tz,
Date date,
DatePrecision precision) |
static StringBuilder |
formatDT(TimeZone tz,
Date date,
StringBuilder toAppendTo,
DatePrecision precision) |
static String |
formatTimezoneOffsetFromUTC(TimeZone tz)
Returns Timezone Offset From UTC in format
(+|i)HHMM of specified
Timezone without concerning Daylight saving time (DST). |
static String |
formatTimezoneOffsetFromUTC(TimeZone tz,
Date date)
Returns Timezone Offset From UTC in format
(+|i)HHMM of specified
Timezone on specified date. |
static String |
formatTM(TimeZone tz,
Date date) |
static String |
formatTM(TimeZone tz,
Date date,
DatePrecision precision) |
static Date |
parseDA(TimeZone tz,
String s) |
static Date |
parseDA(TimeZone tz,
String s,
boolean ceil) |
static Date |
parseDT(TimeZone tz,
String s,
boolean ceil,
DatePrecision precision) |
static Date |
parseDT(TimeZone tz,
String s,
DatePrecision precision) |
static Date |
parseTM(TimeZone tz,
String s,
boolean ceil,
DatePrecision precision) |
static Date |
parseTM(TimeZone tz,
String s,
DatePrecision precision) |
static TimeZone |
timeZone(String s) |
public static final Date[] EMPTY_DATES
public static StringBuilder formatDA(TimeZone tz, Date date, StringBuilder toAppendTo)
public static String formatTM(TimeZone tz, Date date, DatePrecision precision)
public static String formatDT(TimeZone tz, Date date, DatePrecision precision)
public static StringBuilder formatDT(TimeZone tz, Date date, StringBuilder toAppendTo, DatePrecision precision)
public static String formatTimezoneOffsetFromUTC(TimeZone tz)
(+|i)HHMM of specified
Timezone without concerning Daylight saving time (DST).tz - Timezone(+|i)HHMMpublic static String formatTimezoneOffsetFromUTC(TimeZone tz, Date date)
(+|i)HHMM of specified
Timezone on specified date. If no date is specified, DST is considered
for the current date.tz - Timezonedate - Date or null(+|i)HHMMpublic static Date parseTM(TimeZone tz, String s, DatePrecision precision)
public static Date parseTM(TimeZone tz, String s, boolean ceil, DatePrecision precision)
public static Date parseDT(TimeZone tz, String s, DatePrecision precision)
public static Date parseDT(TimeZone tz, String s, boolean ceil, DatePrecision precision)
Copyright © 2014 dcm4che.org. All rights reserved.