You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2003/08/06 03:44:57 UTC
cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/time DateFormatUtils.java FastDateFormat.java DateUtils.java
ggregory 2003/08/05 18:44:57
Modified: lang/src/java/org/apache/commons/lang/time
DateFormatUtils.java FastDateFormat.java
DateUtils.java
Log:
Minor javadoc change: techinally, "time zone" is two words, not one.
This also argues for changing statics from *TIMEZONE* to *TIME_ZONE*
Revision Changes Path
1.4 +22 -22 jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateFormatUtils.java
Index: DateFormatUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateFormatUtils.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DateFormatUtils.java 14 Jul 2003 22:25:05 -0000 1.3
+++ DateFormatUtils.java 6 Aug 2003 01:44:57 -0000 1.4
@@ -73,51 +73,51 @@
public class DateFormatUtils {
/**
- * ISO8601 formatter for date-time witout timezone.
+ * ISO8601 formatter for date-time witout time zone .
* The format used is <tt>yyyy-MM-dd'T'HH:mm:ss</tt>.
*/
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 <tt>yyyy-MM-dd'T'HH:mm:ssZZ</tt>.
*/
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 <tt>yyyy-MM-dd</tt>.
*/
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 <tt>yyyy-MM-ddZZ</tt>.
* 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 <tt>'T'HH:mm:ss</tt>.
*/
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 <tt>'T'HH:mm:ssZZ</tt>.
*/
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 <tt>HH:mm:ss</tt>.
* This pattern does not comply with the formal ISO8601 specification
* as the standard requires the 'T' prefix for times.
@@ -126,7 +126,7 @@
= FastDateFormat.getInstance("HH:mm:ss");
/**
- * ISO8601-like formatter for time with timezone.
+ * ISO8601-like formatter for time with time zone .
* The format used is <tt>HH:mm:ssZZ</tt>.
* This pattern does not comply with the formal ISO8601 specification
* as the standard requires the 'T' prefix for times.
@@ -152,7 +152,7 @@
}
/**
- * <p>Format a date/time into a specific pattern using the UTC timezone.</p>
+ * <p>Format a date/time into a specific pattern using the UTC time zone .</p>
*
* @param millis the date to format expressed in milliseconds
* @param pattern the pattern to use to format the date
@@ -163,7 +163,7 @@
}
/**
- * <p>Format a date/time into a specific pattern using the UTC timezone.</p>
+ * <p>Format a date/time into a specific pattern using the UTC time zone .</p>
*
* @param date the date to format
* @param pattern the pattern to use to format the date
@@ -174,7 +174,7 @@
}
/**
- * <p>Format a date/time into a specific pattern using the UTC timezone.</p>
+ * <p>Format a date/time into a specific pattern using the UTC time zone .</p>
*
* @param millis the date to format expressed in milliseconds
* @param pattern the pattern to use to format the date
@@ -186,7 +186,7 @@
}
/**
- * <p>Format a date/time into a specific pattern using the UTC timezone.</p>
+ * <p>Format a date/time into a specific pattern using the UTC time zone .</p>
*
* @param date the date to format
* @param pattern the pattern to use to format the date
@@ -220,11 +220,11 @@
}
/**
- * <p>Format a date/time into a specific pattern in a timezone.</p>
+ * <p>Format a date/time into a specific pattern in a time zone .</p>
*
* @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 <code>null</code>
+ * @param timeZone the time zone to use, may be <code>null</code>
* @return the formatted date
*/
public static String format(long millis, String pattern, TimeZone timeZone) {
@@ -232,11 +232,11 @@
}
/**
- * <p>Format a date/time into a specific pattern in a timezone.</p>
+ * <p>Format a date/time into a specific pattern in a time zone .</p>
*
* @param date the date to format
* @param pattern the pattern to use to format the date
- * @param timeZone the timezone to use, may be <code>null</code>
+ * @param timeZone the time zone to use, may be <code>null</code>
* @return the formatted date
*/
public static String format(Date date, String pattern, TimeZone timeZone) {
@@ -268,11 +268,11 @@
}
/**
- * <p>Format a date/time into a specific pattern in a timezone and locale.</p>
+ * <p>Format a date/time into a specific pattern in a time zone and locale.</p>
*
* @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 <code>null</code>
+ * @param timeZone the time zone to use, may be <code>null</code>
* @param locale the locale to use, may be <code>null</code>
* @return the formatted date
*/
@@ -281,11 +281,11 @@
}
/**
- * <p>Format a date/time into a specific pattern in a timezone and locale.</p>
+ * <p>Format a date/time into a specific pattern in a time zone and locale.</p>
*
* @param date the date to format
* @param pattern the pattern to use to format the date
- * @param timeZone the timezone to use, may be <code>null</code>
+ * @param timeZone the time zone to use, may be <code>null</code>
* @param locale the locale to use, may be <code>null</code>
* @return the formatted date
*/
1.14 +3 -3 jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java
Index: FastDateFormat.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- FastDateFormat.java 6 Aug 2003 00:02:15 -0000 1.13
+++ FastDateFormat.java 6 Aug 2003 01:44:57 -0000 1.14
@@ -81,7 +81,7 @@
* </p>
*
* <p>Only formatting is supported, but all patterns are compatible with
- * SimpleDateFormat (except timezones - see below).</p>
+ * SimpleDateFormat (except time zones - see below).</p>
*
* <p>Java 1.4 introduced a new pattern letter, <code>'Z'</code>, to represent
* time zones in RFC822 format (eg. <code>+0800</code> or <code>-1100</code>).
@@ -906,7 +906,7 @@
return 1;
}
- public void appendTo(StringBuffer buffer, Calendar calendar) {
+ public void appendTo(StringBuffer buffer, Calendar calendar) {
buffer.append(mValue);
}
}
1.9 +2 -2 jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java
Index: DateUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- DateUtils.java 5 Aug 2003 21:15:49 -0000 1.8
+++ DateUtils.java 6 Aug 2003 01:44:57 -0000 1.9
@@ -78,7 +78,7 @@
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");
/**