Class DateFormatUtils
Date and time formatting utilities and constants.
Formatting is performed using the
FastDateFormat class.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FastDateFormatDeprecated.ISO8601 formatter for date without time zone.static final FastDateFormatDeprecated.ISO8601-like formatter for date with time zone.static final FastDateFormatDeprecated.ISO8601 formatter for date-time without time zone.static final FastDateFormatDeprecated.ISO8601 formatter for date-time with time zone.static final FastDateFormatDeprecated.ISO8601 formatter for time without time zone.static final FastDateFormatDeprecated.ISO8601-like formatter for time without time zone.static final FastDateFormatDeprecated.ISO8601-like formatter for time with time zone.static final FastDateFormatDeprecated.ISO8601 formatter for time with time zone.static final FastDateFormatDeprecated.SMTP (and probably other) date headers. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DateFormatUtils instances should NOT be constructed in standard programming. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.Formats a date/time into a specific pattern.static StringDeprecated.Formats a date/time into a specific pattern in a locale.static StringDeprecated.Formats a date/time into a specific pattern in a time zone.static StringDeprecated.Formats a date/time into a specific pattern in a time zone and locale.static StringDeprecated.Formats a calendar into a specific pattern.static StringDeprecated.Formats a calendar into a specific pattern in a locale.static StringDeprecated.Formats a calendar into a specific pattern in a time zone.static StringDeprecated.Formats a calendar into a specific pattern in a time zone and locale.static StringDeprecated.Formats a date/time into a specific pattern.static StringDeprecated.Formats a date/time into a specific pattern in a locale.static StringDeprecated.Formats a date/time into a specific pattern in a time zone.static StringDeprecated.Formats a date/time into a specific pattern in a time zone and locale.static StringDeprecated.Formats a date/time into a specific pattern using the UTC time zone.static StringDeprecated.Formats a date/time into a specific pattern using the UTC time zone.static StringDeprecated.Formats a date/time into a specific pattern using the UTC time zone.static StringDeprecated.Formats a date/time into a specific pattern using the UTC time zone.
-
Field Details
-
ISO_DATETIME_FORMAT
Deprecated.ISO8601 formatter for date-time without time zone. The format used is yyyy-MM-dd'T'HH:mm:ss. -
ISO_DATETIME_TIME_ZONE_FORMAT
Deprecated.ISO8601 formatter for date-time with time zone. The format used is yyyy-MM-dd'T'HH:mm:ssZZ. -
ISO_DATE_FORMAT
Deprecated.ISO8601 formatter for date without time zone. The format used is yyyy-MM-dd. -
ISO_DATE_TIME_ZONE_FORMAT
Deprecated.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
Deprecated.ISO8601 formatter for time without time zone. The format used is 'T'HH:mm:ss. -
ISO_TIME_TIME_ZONE_FORMAT
Deprecated.ISO8601 formatter for time with time zone. The format used is 'T'HH:mm:ssZZ. -
ISO_TIME_NO_T_FORMAT
Deprecated.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
Deprecated.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. -
SMTP_DATETIME_FORMAT
Deprecated.SMTP (and probably other) date headers. The format used is EEE, dd MMM yyyy HH:mm:ss Z in US locale.
-
-
Constructor Details
-
DateFormatUtils
public DateFormatUtils()Deprecated.DateFormatUtils instances should NOT be constructed in standard programming.
This constructor is public to permit tools that require a JavaBean instance to operate.
-
-
Method Details
-
formatUTC
Deprecated.Formats a date/time into a specific pattern using the UTC time zone.
- Parameters:
millis- the date to format expressed in millisecondspattern- the pattern to use to format the date- Returns:
- the formatted date
-
formatUTC
Deprecated.Formats a date/time into a specific pattern using the UTC time zone.
- Parameters:
date- the date to formatpattern- the pattern to use to format the date- Returns:
- the formatted date
-
formatUTC
Deprecated.Formats a date/time into a specific pattern using the UTC time zone.
- Parameters:
millis- the date to format expressed in millisecondspattern- the pattern to use to format the datelocale- the locale to use, may benull- Returns:
- the formatted date
-
formatUTC
Deprecated.Formats a date/time into a specific pattern using the UTC time zone.
- Parameters:
date- the date to formatpattern- the pattern to use to format the datelocale- the locale to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a date/time into a specific pattern.
- Parameters:
millis- the date to format expressed in millisecondspattern- the pattern to use to format the date- Returns:
- the formatted date
-
format
Deprecated.Formats a date/time into a specific pattern.
- Parameters:
date- the date to formatpattern- the pattern to use to format the date- Returns:
- the formatted date
-
format
Deprecated.Formats a calendar into a specific pattern.
- Parameters:
calendar- the calendar to formatpattern- the pattern to use to format the calendar- Returns:
- the formatted calendar
- Since:
- 2.4
- See Also:
-
format
Deprecated.Formats a date/time into a specific pattern in a time zone.
- Parameters:
millis- the time expressed in millisecondspattern- the pattern to use to format the datetimeZone- the time zone to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a date/time into a specific pattern in a time zone.
- Parameters:
date- the date to formatpattern- the pattern to use to format the datetimeZone- the time zone to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a calendar into a specific pattern in a time zone.
- Parameters:
calendar- the calendar to formatpattern- the pattern to use to format the calendartimeZone- the time zone to use, may benull- Returns:
- the formatted calendar
- Since:
- 2.4
- See Also:
-
format
Deprecated.Formats a date/time into a specific pattern in a locale.
- Parameters:
millis- the date to format expressed in millisecondspattern- the pattern to use to format the datelocale- the locale to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a date/time into a specific pattern in a locale.
- Parameters:
date- the date to formatpattern- the pattern to use to format the datelocale- the locale to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a calendar into a specific pattern in a locale.
- Parameters:
calendar- the calendar to formatpattern- the pattern to use to format the calendarlocale- the locale to use, may benull- Returns:
- the formatted calendar
- Since:
- 2.4
- See Also:
-
format
Deprecated.Formats a date/time into a specific pattern in a time zone and locale.
- Parameters:
millis- the date to format expressed in millisecondspattern- the pattern to use to format the datetimeZone- the time zone to use, may benulllocale- the locale to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a date/time into a specific pattern in a time zone and locale.
- Parameters:
date- the date to formatpattern- the pattern to use to format the datetimeZone- the time zone to use, may benulllocale- the locale to use, may benull- Returns:
- the formatted date
-
format
Deprecated.Formats a calendar into a specific pattern in a time zone and locale.
- Parameters:
calendar- the calendar to formatpattern- the pattern to use to format the calendartimeZone- the time zone to use, may benulllocale- the locale to use, may benull- Returns:
- the formatted calendar
- Since:
- 2.4
- See Also:
-