Lines Matching defs:year

46  * functions.  It allowed the interpretation of dates as year, month, day, hour,
60 * in all cases. In UTC, however, about once every year or two there
64 * year 1995 was 61 seconds long, thanks to an added leap second.
95 * year, month, date, hours, minutes, and seconds values, the
98 * <li>A year <i>y</i> is represented by the integer
182 * specified by the <code>year</code>, <code>month</code>, and
185 * @param year the year minus 1900.
190 * replaced by <code>Calendar.set(year + 1900, month, date)</code>
191 * or <code>GregorianCalendar(year + 1900, month, date)</code>.
194 public Date(int year, int month, int date) {
195 this(year, month, date, 0, 0, 0);
201 * the <code>year</code>, <code>month</code>, <code>date</code>,
205 * @param year the year minus 1900.
212 * replaced by <code>Calendar.set(year + 1900, month, date,
213 * hrs, min)</code> or <code>GregorianCalendar(year + 1900,
217 public Date(int year, int month, int date, int hrs, int min) {
218 this(year, month, date, hrs, min, 0);
224 * by the <code>year</code>, <code>month</code>, <code>date</code>,
228 * @param year the year minus 1900.
236 * replaced by <code>Calendar.set(year + 1900, month, date,
237 * hrs, min, sec)</code> or <code>GregorianCalendar(year + 1900,
241 public Date(int year, int month, int date, int hrs, int min, int sec) {
242 int y = year + 1900;
291 * arguments are interpreted as a year, month, day of the month,
299 * @param year the year minus 1900.
309 * replaced by <code>Calendar.set(year + 1900, month, date,
310 * hrs, min, sec)</code> or <code>GregorianCalendar(year + 1900,
315 public static long UTC(int year, int month, int date,
317 int y = year + 1900;
366 * <li>If a number is preceded by <tt>+</tt> or <tt>-</tt> and a year
378 * <li>The number is regarded as a year number if one of the
386 * If the recognized year number is less than 100, it is
387 * interpreted as an abbreviated year relative to a century of
390 * After adjusting the year number, 1900 is subtracted from
391 * it. For example, if the current year is 1999 then years in
439 * recognized, then the year, month, day of month, hour, minute, and
441 * applied. Otherwise, the year, month, day of month, hour, minute, and
453 int year = Integer.MIN_VALUE;
494 if (prevc == '+' || prevc == '-' && year != Integer.MIN_VALUE) {
506 if (year != Integer.MIN_VALUE)
509 // year = n < 1900 ? n : n - 1900;
510 year = n;
536 else if (year == Integer.MIN_VALUE && mon >= 0 && mday >= 0)
537 year = n;
584 if (year == Integer.MIN_VALUE || mon < 0 || mday < 0)
587 if (year < 100) {
593 year += (defaultCenturyStart / 100) * 100;
594 if (year < defaultCenturyStart) year += 100;
602 BaseCalendar cal = getCalendarSystem(year);
605 ldate.setDate(year, mon + 1, mday);
610 udate.setDate(year, mon + 1, mday);
638 * year that contains or begins with the instant in time represented
642 * @return the year represented by this date, minus 1900.
653 * Sets the year of this <tt>Date</tt> object to be the specified
655 * that it represents a point in time within the specified year,
658 * the date was February 29, for example, and the year is set to a
659 * non-leap year, then the new date will be treated as if it were
662 * @param year the year value.
665 * replaced by <code>Calendar.set(Calendar.YEAR, year + 1900)</code>.
668 public void setYear(int year) {
669 getCalendarDate().setNormalizedYear(year + 1900);
691 * in time within the specified month, with the year, date, hour,
741 * month, with the year, month, hour, minute, and second the same
796 * in time within the specified hour of the day, with the year, month,
828 * in time within the specified minute of the hour, with the year, month,
862 * the year, month, date, hour, and minute the same as before, as
1018 * <li><tt>yyyy</tt> is the year, as four decimal digits.
1093 * <li><i>yyyy</i> is the year, as four decimal digits.
1226 // If the specified year can't be handled using a long value
1229 // by some JCK tests. The limits are based max year values -
1232 // cutover year so that we don't need to worry about the
1271 * @param year normalized calendar year (not -1900)
1274 private static final BaseCalendar getCalendarSystem(int year) {
1275 if (year >= 1582) {