Fix spelling.

This commit is contained in:
Gary Gregory 2020-12-17 14:39:09 -05:00
parent 615eee5d51
commit e9647813f7
7 changed files with 12 additions and 12 deletions

View File

@ -45,7 +45,7 @@ import org.apache.commons.lang3.Validate;
* <p>
* 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).
* </p>
*
@ -686,7 +686,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.</p>
*
* <p>For a date in a timezone that handles the change to daylight
* <p>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.</p>
*
* <p>For a date in a timezone that handles the change to daylight
* <p>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.</p>
*
* <p>For a date in a timezone that handles the change to daylight
* <p>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:

View File

@ -254,7 +254,7 @@ public class DurationFormatUtils {
/**
* <p>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. </p>
* the time zone may be specified. </p>
*
* <p>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));

View File

@ -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}";

View File

@ -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) {

View File

@ -70,7 +70,7 @@ public class FastTimeZone {
* i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em>
*
* @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);

View File

@ -48,7 +48,7 @@ abstract class FormatCache<F extends Format> {
/**
* <p>Gets a formatter instance using the default pattern in the
* default timezone and locale.</p>
* default time zone and locale.</p>
*
* @return a date/time formatter
*/

View File

@ -20,7 +20,7 @@ import java.util.Date;
import java.util.TimeZone;
/**
* Custom timezone that contains offset from GMT.
* Custom time zone that contains offset from GMT.
*
* @since 3.7
*/