Use the more modern, compact, and flexible Javadoc "{@code ...}" instead of the HTML "<tt>...</tt>".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612038 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1caa21bf5
commit
88dd10fa4b
|
@ -42,28 +42,28 @@ public class DateFormatUtils {
|
|||
private static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("GMT");
|
||||
/**
|
||||
* ISO 8601 formatter for date-time without time zone.
|
||||
* The format used is <tt>yyyy-MM-dd'T'HH:mm:ss</tt>.
|
||||
* The format used is {@code yyyy-MM-dd'T'HH:mm:ss}.
|
||||
*/
|
||||
public static final FastDateFormat ISO_DATETIME_FORMAT
|
||||
= FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss");
|
||||
|
||||
/**
|
||||
* ISO 8601 formatter for date-time with time zone.
|
||||
* The format used is <tt>yyyy-MM-dd'T'HH:mm:ssZZ</tt>.
|
||||
* The format used is {@code yyyy-MM-dd'T'HH:mm:ssZZ}.
|
||||
*/
|
||||
public static final FastDateFormat ISO_DATETIME_TIME_ZONE_FORMAT
|
||||
= FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssZZ");
|
||||
|
||||
/**
|
||||
* ISO 8601 formatter for date without time zone.
|
||||
* The format used is <tt>yyyy-MM-dd</tt>.
|
||||
* The format used is {@code yyyy-MM-dd}.
|
||||
*/
|
||||
public static final FastDateFormat ISO_DATE_FORMAT
|
||||
= FastDateFormat.getInstance("yyyy-MM-dd");
|
||||
|
||||
/**
|
||||
* ISO 8601-like formatter for date with time zone.
|
||||
* The format used is <tt>yyyy-MM-ddZZ</tt>.
|
||||
* The format used is {@code yyyy-MM-ddZZ}.
|
||||
* This pattern does not comply with the formal ISO 8601 specification
|
||||
* as the standard does not allow a time zone without a time.
|
||||
*/
|
||||
|
@ -72,21 +72,21 @@ public class DateFormatUtils {
|
|||
|
||||
/**
|
||||
* ISO 8601 formatter for time without time zone.
|
||||
* The format used is <tt>'T'HH:mm:ss</tt>.
|
||||
* The format used is {@code 'T'HH:mm:ss}.
|
||||
*/
|
||||
public static final FastDateFormat ISO_TIME_FORMAT
|
||||
= FastDateFormat.getInstance("'T'HH:mm:ss");
|
||||
|
||||
/**
|
||||
* ISO 8601 formatter for time with time zone.
|
||||
* The format used is <tt>'T'HH:mm:ssZZ</tt>.
|
||||
* The format used is {@code 'T'HH:mm:ssZZ}.
|
||||
*/
|
||||
public static final FastDateFormat ISO_TIME_TIME_ZONE_FORMAT
|
||||
= FastDateFormat.getInstance("'T'HH:mm:ssZZ");
|
||||
|
||||
/**
|
||||
* ISO 8601-like formatter for time without time zone.
|
||||
* The format used is <tt>HH:mm:ss</tt>.
|
||||
* The format used is {@code HH:mm:ss}.
|
||||
* This pattern does not comply with the formal ISO 8601 specification
|
||||
* as the standard requires the 'T' prefix for times.
|
||||
*/
|
||||
|
@ -95,7 +95,7 @@ public class DateFormatUtils {
|
|||
|
||||
/**
|
||||
* ISO 8601-like formatter for time with time zone.
|
||||
* The format used is <tt>HH:mm:ssZZ</tt>.
|
||||
* The format used is {@code HH:mm:ssZZ}.
|
||||
* This pattern does not comply with the formal ISO 8601 specification
|
||||
* as the standard requires the 'T' prefix for times.
|
||||
*/
|
||||
|
@ -104,7 +104,7 @@ public class DateFormatUtils {
|
|||
|
||||
/**
|
||||
* SMTP (and probably other) date headers.
|
||||
* The format used is <tt>EEE, dd MMM yyyy HH:mm:ss Z</tt> in US locale.
|
||||
* The format used is {@code EEE, dd MMM yyyy HH:mm:ss Z} in US locale.
|
||||
*/
|
||||
public static final FastDateFormat SMTP_DATETIME_FORMAT
|
||||
= FastDateFormat.getInstance("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US);
|
||||
|
|
Loading…
Reference in New Issue