diff --git a/src/java/org/apache/commons/lang/time/DateFormatUtils.java b/src/java/org/apache/commons/lang/time/DateFormatUtils.java index f60a0fd99..faf80989a 100644 --- a/src/java/org/apache/commons/lang/time/DateFormatUtils.java +++ b/src/java/org/apache/commons/lang/time/DateFormatUtils.java @@ -68,56 +68,56 @@ * @author Stefan Bodewig * @author Stephen Colebourne * @since 2.0 - * @version $Id: DateFormatUtils.java,v 1.3 2003/07/14 22:25:05 bayard Exp $ + * @version $Id: DateFormatUtils.java,v 1.4 2003/08/06 01:44:57 ggregory Exp $ */ public class DateFormatUtils { /** - * ISO8601 formatter for date-time witout timezone. + * ISO8601 formatter for date-time witout time zone . * The format used is yyyy-MM-dd'T'HH:mm:ss. */ public static final FastDateFormat ISO_DATETIME_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss"); /** - * ISO8601 formatter for date-time with timezone. + * ISO8601 formatter for date-time with time zone . * The format used is yyyy-MM-dd'T'HH:mm:ssZZ. */ public static final FastDateFormat ISO_DATETIME_TIMEZONE_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssZZ"); /** - * ISO8601 formatter for date without timezone. + * ISO8601 formatter for date without time zone . * The format used is yyyy-MM-dd. */ public static final FastDateFormat ISO_DATE_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd"); /** - * ISO8601-like formatter for date with timezone. + * 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 timezone without a time. + * as the standard does not allow a time zone without a time. */ public static final FastDateFormat ISO_DATE_TIMEZONE_FORMAT = FastDateFormat.getInstance("yyyy-MM-ddZZ"); /** - * ISO8601 formatter for time without timezone. + * ISO8601 formatter for time without time zone . * The format used is 'T'HH:mm:ss. */ public static final FastDateFormat ISO_TIME_FORMAT = FastDateFormat.getInstance("'T'HH:mm:ss"); /** - * ISO8601 formatter for time with timezone. + * ISO8601 formatter for time with time zone . * The format used is 'T'HH:mm:ssZZ. */ public static final FastDateFormat ISO_TIME_TIMEZONE_FORMAT = FastDateFormat.getInstance("'T'HH:mm:ssZZ"); /** - * ISO8601-like formatter for time without timezone. + * 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. @@ -126,7 +126,7 @@ public class DateFormatUtils { = FastDateFormat.getInstance("HH:mm:ss"); /** - * ISO8601-like formatter for time with timezone. + * 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. @@ -152,7 +152,7 @@ public DateFormatUtils() { } /** - *

Format a date/time into a specific pattern using the UTC timezone.

+ *

Format a date/time into a specific pattern using the UTC time zone .

* * @param millis the date to format expressed in milliseconds * @param pattern the pattern to use to format the date @@ -163,7 +163,7 @@ public static String formatUTC(long millis, String pattern) { } /** - *

Format a date/time into a specific pattern using the UTC timezone.

+ *

Format a date/time into a specific pattern using the UTC time zone .

* * @param date the date to format * @param pattern the pattern to use to format the date @@ -174,7 +174,7 @@ public static String formatUTC(Date date, String pattern) { } /** - *

Format a date/time into a specific pattern using the UTC timezone.

+ *

Format a date/time into a specific pattern using the UTC time zone .

* * @param millis the date to format expressed in milliseconds * @param pattern the pattern to use to format the date @@ -186,7 +186,7 @@ public static String formatUTC(long millis, String pattern, Locale locale) { } /** - *

Format a date/time into a specific pattern using the UTC timezone.

+ *

Format a date/time into a specific pattern using the UTC time zone .

* * @param date the date to format * @param pattern the pattern to use to format the date @@ -220,11 +220,11 @@ public static String format(Date date, String pattern) { } /** - *

Format a date/time into a specific pattern in a timezone.

+ *

Format a date/time into a specific pattern in a time zone .

* * @param millis the time expressed in milliseconds * @param pattern the pattern to use to format the date - * @param timeZone the timezone to use, may be null + * @param timeZone the time zone to use, may be null * @return the formatted date */ public static String format(long millis, String pattern, TimeZone timeZone) { @@ -232,11 +232,11 @@ public static String format(long millis, String pattern, TimeZone timeZone) { } /** - *

Format a date/time into a specific pattern in a timezone.

+ *

Format a date/time into a specific pattern in a time zone .

* * @param date the date to format * @param pattern the pattern to use to format the date - * @param timeZone the timezone to use, may be null + * @param timeZone the time zone to use, may be null * @return the formatted date */ public static String format(Date date, String pattern, TimeZone timeZone) { @@ -268,11 +268,11 @@ public static String format(Date date, String pattern, Locale locale) { } /** - *

Format a date/time into a specific pattern in a timezone and locale.

+ *

Format a date/time into a specific pattern in a time zone and locale.

* * @param millis the date to format expressed in milliseconds * @param pattern the pattern to use to format the date - * @param timeZone the timezone to use, may be null + * @param timeZone the time zone to use, may be null * @param locale the locale to use, may be null * @return the formatted date */ @@ -281,11 +281,11 @@ public static String format(long millis, String pattern, TimeZone timeZone, Loca } /** - *

Format a date/time into a specific pattern in a timezone and locale.

+ *

Format a date/time into a specific pattern in a time zone and locale.

* * @param date the date to format * @param pattern the pattern to use to format the date - * @param timeZone the timezone to use, may be null + * @param timeZone the time zone to use, may be null * @param locale the locale to use, may be null * @return the formatted date */ diff --git a/src/java/org/apache/commons/lang/time/DateUtils.java b/src/java/org/apache/commons/lang/time/DateUtils.java index bac052a86..b9ac94a85 100644 --- a/src/java/org/apache/commons/lang/time/DateUtils.java +++ b/src/java/org/apache/commons/lang/time/DateUtils.java @@ -73,12 +73,12 @@ * @author Stephen Colebourne * @author Janek Bogucki * @since 2.0 - * @version $Id: DateUtils.java,v 1.8 2003/08/05 21:15:49 stevencaswell Exp $ + * @version $Id: DateUtils.java,v 1.9 2003/08/06 01:44:57 ggregory Exp $ */ public class DateUtils { /** - * The UTC timezone (often referred to as GMT). + * The UTC time zone (often referred to as GMT). */ public static final TimeZone UTC_TIMEZONE = TimeZone.getTimeZone("GMT"); /** diff --git a/src/java/org/apache/commons/lang/time/FastDateFormat.java b/src/java/org/apache/commons/lang/time/FastDateFormat.java index 4c4b2fe96..53781ccfe 100644 --- a/src/java/org/apache/commons/lang/time/FastDateFormat.java +++ b/src/java/org/apache/commons/lang/time/FastDateFormat.java @@ -81,7 +81,7 @@ *

* *

Only formatting is supported, but all patterns are compatible with - * SimpleDateFormat (except timezones - see below).

+ * SimpleDateFormat (except time zones - see below).

* *

Java 1.4 introduced a new pattern letter, 'Z', to represent * time zones in RFC822 format (eg. +0800 or -1100). @@ -98,7 +98,7 @@ * @author Gary Gregory * @author Stephen Colebourne * @since 2.0 - * @version $Id: FastDateFormat.java,v 1.13 2003/08/06 00:02:15 stevencaswell Exp $ + * @version $Id: FastDateFormat.java,v 1.14 2003/08/06 01:44:57 ggregory Exp $ */ public class FastDateFormat extends Format { // A lot of the speed in this class comes from caching, but some comes @@ -906,7 +906,7 @@ public int estimateLength() { return 1; } - public void appendTo(StringBuffer buffer, Calendar calendar) { + public void appendTo(StringBuffer buffer, Calendar calendar) { buffer.append(mValue); } }