Fix spelling.
This commit is contained in:
parent
615eee5d51
commit
e9647813f7
|
@ -45,7 +45,7 @@ import org.apache.commons.lang3.Validate;
|
||||||
* <p>
|
* <p>
|
||||||
* Several methods are provided for adding to {@code Date} objects, of the form
|
* 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
|
* {@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).
|
* be affected by changes to daylight saving time (DST).
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
|
@ -686,7 +686,7 @@ public class DateUtils {
|
||||||
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
|
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
|
||||||
* would return 1 April 2002 0:00:00.000.</p>
|
* 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.
|
* 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
|
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
|
||||||
* date that crosses this time would produce the following values:
|
* 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
|
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
|
||||||
* would return 1 April 2002 0:00:00.000.</p>
|
* 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.
|
* 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
|
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
|
||||||
* date that crosses this time would produce the following values:
|
* 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
|
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
|
||||||
* would return 1 April 2002 0:00:00.000.</p>
|
* 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.
|
* 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
|
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
|
||||||
* date that crosses this time would produce the following values:
|
* date that crosses this time would produce the following values:
|
||||||
|
|
|
@ -254,7 +254,7 @@ public class DurationFormatUtils {
|
||||||
/**
|
/**
|
||||||
* <p>Formats the time gap as a string, using the specified format.
|
* <p>Formats the time gap as a string, using the specified format.
|
||||||
* Padding the left hand side of numbers with zeroes is optional and
|
* 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
|
* <p>When calculating the difference between months/days, it chooses to
|
||||||
* calculate months first. So when working out the number of months and
|
* calculate months first. So when working out the number of months and
|
||||||
|
@ -288,7 +288,7 @@ public class DurationFormatUtils {
|
||||||
|
|
||||||
final Token[] tokens = lexx(format);
|
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
|
// stops the hours being off
|
||||||
final Calendar start = Calendar.getInstance(timezone);
|
final Calendar start = Calendar.getInstance(timezone);
|
||||||
start.setTime(new Date(startMillis));
|
start.setTime(new Date(startMillis));
|
||||||
|
|
|
@ -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 {
|
static class TimeZoneStrategy extends PatternStrategy {
|
||||||
private static final String RFC_822_TIME_ZONE = "[+-]\\d{4}";
|
private static final String RFC_822_TIME_ZONE = "[+-]\\d{4}";
|
||||||
|
|
|
@ -1528,8 +1528,8 @@ public class FastDatePrinter implements DatePrinter, Serializable {
|
||||||
*
|
*
|
||||||
* @param timeZone the time zone
|
* @param timeZone the time zone
|
||||||
* @param daylight adjust the style for daylight saving time if {@code true}
|
* @param daylight adjust the style for daylight saving time if {@code true}
|
||||||
* @param style the timezone style
|
* @param style the time zone style
|
||||||
* @param locale the timezone locale
|
* @param locale the time zone locale
|
||||||
*/
|
*/
|
||||||
TimeZoneDisplayKey(final TimeZone timeZone,
|
TimeZoneDisplayKey(final TimeZone timeZone,
|
||||||
final boolean daylight, final int style, final Locale locale) {
|
final boolean daylight, final int style, final Locale locale) {
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class FastTimeZone {
|
||||||
* i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em>
|
* i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em>
|
||||||
*
|
*
|
||||||
* @param id A GMT custom id (or Olson id
|
* @param id A GMT custom id (or Olson id
|
||||||
* @return A timezone
|
* @return A time zone
|
||||||
*/
|
*/
|
||||||
public static TimeZone getTimeZone(final String id) {
|
public static TimeZone getTimeZone(final String id) {
|
||||||
final TimeZone tz = getGmtTimeZone(id);
|
final TimeZone tz = getGmtTimeZone(id);
|
||||||
|
|
|
@ -48,7 +48,7 @@ abstract class FormatCache<F extends Format> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Gets a formatter instance using the default pattern in the
|
* <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
|
* @return a date/time formatter
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.util.Date;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom timezone that contains offset from GMT.
|
* Custom time zone that contains offset from GMT.
|
||||||
*
|
*
|
||||||
* @since 3.7
|
* @since 3.7
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue