From e9647813f7a846318b228b5d4ba01470d88496c6 Mon Sep 17 00:00:00 2001
From: Gary Gregory
* Several methods are provided for adding to {@code Date} objects, of the form
* {@code addXXX(Date date, int amount)}. It is important to note these methods
- * use a {@code Calendar} internally (with default timezone and locale) and may
+ * use a {@code Calendar} internally (with default time zone and locale) and may
* be affected by changes to daylight saving time (DST).
*
For a date in a timezone that handles the change to daylight + *
For a date in a time zone that handles the change to daylight * saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows. * Suppose daylight saving time begins at 02:00 on March 30. Rounding a * date that crosses this time would produce the following values: @@ -720,7 +720,7 @@ public class DateUtils { * 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it * would return 1 April 2002 0:00:00.000.
* - *For a date in a timezone that handles the change to daylight + *
For a date in a time zone that handles the change to daylight * saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows. * Suppose daylight saving time begins at 02:00 on March 30. Rounding a * date that crosses this time would produce the following values: @@ -760,7 +760,7 @@ public class DateUtils { * 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it * would return 1 April 2002 0:00:00.000.
* - *For a date in a timezone that handles the change to daylight + *
For a date in a time zone that handles the change to daylight * saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows. * Suppose daylight saving time begins at 02:00 on March 30. Rounding a * date that crosses this time would produce the following values: diff --git a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java index 8b46e852c..c2b55c2dc 100644 --- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java @@ -254,7 +254,7 @@ public class DurationFormatUtils { /** *
Formats the time gap as a string, using the specified format. * Padding the left hand side of numbers with zeroes is optional and - * the timezone may be specified.
+ * the time zone may be specified. * *When calculating the difference between months/days, it chooses to
* calculate months first. So when working out the number of months and
@@ -288,7 +288,7 @@ public class DurationFormatUtils {
final Token[] tokens = lexx(format);
- // timezones get funky around 0, so normalizing everything to GMT
+ // time zones get funky around 0, so normalizing everything to GMT
// stops the hours being off
final Calendar start = Calendar.getInstance(timezone);
start.setTime(new Date(startMillis));
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
index 79686d6ae..e53a24607 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
@@ -808,7 +808,7 @@ public class FastDateParser implements DateParser, Serializable {
};
/**
- * A strategy that handles a timezone field in the parsing pattern
+ * A strategy that handles a time zone field in the parsing pattern
*/
static class TimeZoneStrategy extends PatternStrategy {
private static final String RFC_822_TIME_ZONE = "[+-]\\d{4}";
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
index 5217d9391..3402409cb 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
@@ -1528,8 +1528,8 @@ public class FastDatePrinter implements DatePrinter, Serializable {
*
* @param timeZone the time zone
* @param daylight adjust the style for daylight saving time if {@code true}
- * @param style the timezone style
- * @param locale the timezone locale
+ * @param style the time zone style
+ * @param locale the time zone locale
*/
TimeZoneDisplayKey(final TimeZone timeZone,
final boolean daylight, final int style, final Locale locale) {
diff --git a/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java b/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
index 3902b7868..d111bed41 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
@@ -70,7 +70,7 @@ public class FastTimeZone {
* i.e. [GMT] (+|-) Hours [[:] Minutes]
*
* @param id A GMT custom id (or Olson id
- * @return A timezone
+ * @return A time zone
*/
public static TimeZone getTimeZone(final String id) {
final TimeZone tz = getGmtTimeZone(id);
diff --git a/src/main/java/org/apache/commons/lang3/time/FormatCache.java b/src/main/java/org/apache/commons/lang3/time/FormatCache.java
index 7ffd83a2d..e1e3a0100 100644
--- a/src/main/java/org/apache/commons/lang3/time/FormatCache.java
+++ b/src/main/java/org/apache/commons/lang3/time/FormatCache.java
@@ -48,7 +48,7 @@ abstract class FormatCache Gets a formatter instance using the default pattern in the
- * default timezone and locale.