| java.lang.Object org.apache.commons.lang.time.DateFormatUtils
Method Summary | |
public static String | format(long millis, String pattern) | public static String | format(Date date, String pattern) | public static String | format(long millis, String pattern, TimeZone timeZone) | public static String | format(Date date, String pattern, TimeZone timeZone) | public static String | format(long millis, String pattern, Locale locale) | public static String | format(Date date, String pattern, Locale locale) | public static String | format(long millis, String pattern, TimeZone timeZone, Locale locale) | public static String | format(Date date, String pattern, TimeZone timeZone, Locale locale) | public static String | formatUTC(long millis, String pattern) | public static String | formatUTC(Date date, String pattern) | public static String | formatUTC(long millis, String pattern, Locale locale) | public static String | formatUTC(Date date, String pattern, Locale locale) |
ISO_DATETIME_FORMAT | final public static FastDateFormat ISO_DATETIME_FORMAT(Code) | | ISO8601 formatter for date-time without time zone.
The format used is yyyy-MM-dd'T'HH:mm:ss.
|
ISO_DATETIME_TIME_ZONE_FORMAT | final public static FastDateFormat ISO_DATETIME_TIME_ZONE_FORMAT(Code) | | ISO8601 formatter for date-time with time zone.
The format used is yyyy-MM-dd'T'HH:mm:ssZZ.
|
ISO_DATE_FORMAT | final public static FastDateFormat ISO_DATE_FORMAT(Code) | | ISO8601 formatter for date without time zone.
The format used is yyyy-MM-dd.
|
ISO_DATE_TIME_ZONE_FORMAT | final public static FastDateFormat ISO_DATE_TIME_ZONE_FORMAT(Code) | | ISO8601-like formatter for date with time zone.
The format used is yyyy-MM-ddZZ.
This pattern does not comply with the formal ISO8601 specification
as the standard does not allow a time zone without a time.
|
ISO_TIME_FORMAT | final public static FastDateFormat ISO_TIME_FORMAT(Code) | | ISO8601 formatter for time without time zone.
The format used is 'T'HH:mm:ss.
|
ISO_TIME_NO_T_FORMAT | final public static FastDateFormat ISO_TIME_NO_T_FORMAT(Code) | | ISO8601-like formatter for time without time zone.
The format used is HH:mm:ss.
This pattern does not comply with the formal ISO8601 specification
as the standard requires the 'T' prefix for times.
|
ISO_TIME_NO_T_TIME_ZONE_FORMAT | final public static FastDateFormat ISO_TIME_NO_T_TIME_ZONE_FORMAT(Code) | | ISO8601-like formatter for time with time zone.
The format used is HH:mm:ssZZ.
This pattern does not comply with the formal ISO8601 specification
as the standard requires the 'T' prefix for times.
|
ISO_TIME_TIME_ZONE_FORMAT | final public static FastDateFormat ISO_TIME_TIME_ZONE_FORMAT(Code) | | ISO8601 formatter for time with time zone.
The format used is 'T'HH:mm:ssZZ.
|
SMTP_DATETIME_FORMAT | final public static FastDateFormat SMTP_DATETIME_FORMAT(Code) | | SMTP (and probably other) date headers.
The format used is EEE, dd MMM yyyy HH:mm:ss Z in US locale.
|
DateFormatUtils | public DateFormatUtils()(Code) | | DateFormatUtils instances should NOT be constructed in standard programming.
This constructor is public to permit tools that require a JavaBean instance
to operate.
|
format | public static String format(long millis, String pattern)(Code) | | Formats a date/time into a specific pattern.
Parameters: millis - the date to format expressed in milliseconds Parameters: pattern - the pattern to use to format the date the formatted date |
format | public static String format(Date date, String pattern)(Code) | | Formats a date/time into a specific pattern.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date the formatted date |
format | public static String format(long millis, String pattern, TimeZone timeZone)(Code) | | Formats a date/time into a specific pattern in a time zone.
Parameters: millis - the time expressed in milliseconds Parameters: pattern - the pattern to use to format the date Parameters: timeZone - the time zone to use, may be null the formatted date |
format | public static String format(Date date, String pattern, TimeZone timeZone)(Code) | | Formats a date/time into a specific pattern in a time zone.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date Parameters: timeZone - the time zone to use, may be null the formatted date |
format | public static String format(long millis, String pattern, Locale locale)(Code) | | Formats a date/time into a specific pattern in a locale.
Parameters: millis - the date to format expressed in milliseconds Parameters: pattern - the pattern to use to format the date Parameters: locale - the locale to use, may be null the formatted date |
format | public static String format(Date date, String pattern, Locale locale)(Code) | | Formats a date/time into a specific pattern in a locale.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date Parameters: locale - the locale to use, may be null the formatted date |
format | public static String format(long millis, String pattern, TimeZone timeZone, Locale locale)(Code) | | Formats a date/time into a specific pattern in a time zone and locale.
Parameters: millis - the date to format expressed in milliseconds Parameters: pattern - the pattern to use to format the date Parameters: timeZone - the time zone to use, may be null Parameters: locale - the locale to use, may be null the formatted date |
format | public static String format(Date date, String pattern, TimeZone timeZone, Locale locale)(Code) | | Formats a date/time into a specific pattern in a time zone and locale.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date Parameters: timeZone - the time zone to use, may be null Parameters: locale - the locale to use, may be null the formatted date |
formatUTC | public static String formatUTC(long millis, String pattern)(Code) | | Formats a date/time into a specific pattern using the UTC time zone.
Parameters: millis - the date to format expressed in milliseconds Parameters: pattern - the pattern to use to format the date the formatted date |
formatUTC | public static String formatUTC(Date date, String pattern)(Code) | | Formats a date/time into a specific pattern using the UTC time zone.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date the formatted date |
formatUTC | public static String formatUTC(long millis, String pattern, Locale locale)(Code) | | Formats a date/time into a specific pattern using the UTC time zone.
Parameters: millis - the date to format expressed in milliseconds Parameters: pattern - the pattern to use to format the date Parameters: locale - the locale to use, may be null the formatted date |
formatUTC | public static String formatUTC(Date date, String pattern, Locale locale)(Code) | | Formats a date/time into a specific pattern using the UTC time zone.
Parameters: date - the date to format Parameters: pattern - the pattern to use to format the date Parameters: locale - the locale to use, may be null the formatted date |
|
|