diff --git a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java index 47aaf4551..4315e4742 100644 --- a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java @@ -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 yyyy-MM-dd'T'HH:mm:ss. + * 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 yyyy-MM-dd'T'HH:mm:ssZZ. + * 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 yyyy-MM-dd. + * 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 yyyy-MM-ddZZ. + * 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 'T'HH:mm:ss. + * 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 'T'HH:mm:ssZZ. + * 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 HH:mm:ss. + * 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 HH:mm:ssZZ. + * 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 EEE, dd MMM yyyy HH:mm:ss Z 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);