Searched refs:year (Results 1 - 19 of 19) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/util/
H A DGregorianCalendar.java42 * the Julian calendar is the leap year rule. The Julian calendar specifies leap
54 * date, leap year rules were applied irregularly, and before 45 BC the Julian
65 * 53. Week 1 for a year is the earliest seven day period starting on
67 * {@code getMinimalDaysInFirstWeek()} days from that year. It thus
70 * Weeks between week 1 of one year and week 1 of the following year are
89 * {@code getFirstDayOfWeek()}. Unlike week 1 of a year, week 1 of a
246 * @param year
247 * the year.
253 public GregorianCalendar(int year, in argument
273 GregorianCalendar(int year, int month, int day, int hour, int minute) argument
295 GregorianCalendar(int year, int month, int day, int hour, int minute, int second) argument
960 daysInYear(int year) argument
1225 isLeapYear(int year) argument
[all...]
H A DDate.java66 * @param year
67 * the year, 0 is 1900.
77 public Date(int year, int month, int day) { argument
79 cal.set(1900 + year, month, day);
87 * @param year
88 * the year, 0 is 1900.
102 public Date(int year, int month, int day, int hour, int minute) { argument
104 cal.set(1900 + year, month, day, hour, minute);
112 * @param year
113 * the year,
129 Date(int year, int month, int day, int hour, int minute, int second) argument
662 setYear(int year) argument
760 UTC(int year, int month, int day, int hour, int minute, int second) argument
[all...]
H A DSimpleTimeZone.java397 public int getOffset(int era, int year, int month, int day, int dayOfWeek, argument
403 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) {
408 // return icuTZ.getOffset(era, year, month, day, dayOfWeek, time);
410 || year < startYear) {
436 year)) {
478 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) {
513 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) {
605 private boolean isLeapYear(int year) { argument
606 if (year > 1582) {
607 return year
909 setStartYear(int year) argument
[all...]
H A DCalendar.java56 * fields, as well as their meaning. For example, the first month of the year
83 * the first week of the month or year as a reference point. The first week of a
84 * month or year is defined as the earliest seven day period beginning on
86 * {@code getMinimalDaysInFirstWeek()} days of that month or year. Weeks
90 * designate the week before week 1 of a year as week <em>n</em> of the
91 * previous year.
96 * {@code Date} (such as only year and month but no day in the month), or
219 * gives September of the next year. Since {@code DAY_OF_MONTH} cannot be
264 * increment and decrement buttons for the month, day, and year, and an
335 * year
1195 set(int year, int month, int day) argument
1216 set(int year, int month, int day, int hourOfDay, int minute) argument
1240 set(int year, int month, int day, int hourOfDay, int minute, int second) argument
[all...]
H A DFormatter.java413 * <td width="25%">3-digit day of year (001-366).</td>
437 * <td width="25%">2-digit month of year (01-12).</td>
497 * <td width="25%">2-digit year (00-99).</td>
503 * <td width="25%">4-digit year.</td>
2399 int year = calendar.get(Calendar.YEAR);
2400 year %= 100;
2401 result.append(paddingZeros(year, 2));
2405 int year = calendar.get(Calendar.YEAR);
2406 result.append(paddingZeros(year, 4));
2410 int year
[all...]
H A DTimeZone.java373 * @param year
374 * the year.
385 abstract public int getOffset(int era, int year, int month, int day, argument
640 * observed daylight savings before but plans to start next year would return
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/
H A DZoneInfo.java140 int year, int month, int day,
147 long calc = (year / 400) * MILLISECONDS_PER_400_YEARS;
148 year %= 400;
150 calc += year * (365 * MILLISECONDS_PER_DAY);
151 calc += ((year + 3) / 4) * MILLISECONDS_PER_DAY;
153 if (year > 0)
154 calc -= ((year - 1) / 100) * MILLISECONDS_PER_DAY;
156 boolean isLeap = (year == 0 || (year % 4 == 0 && year
139 getOffset(@uppressWarningsÓ) int era, int year, int month, int day, @SuppressWarnings(Ó) int dayOfWeek, int millis) argument
[all...]
H A DZoneInfoDB.java410 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DUtil.java124 int year = -1, month = -1, date = -1;
147 if (year != -1
150 year = digit;
166 else if (year == -1)
167 year = digit;
170 } else if (year == -1 && month != -1 && date != -1)
171 year = digit;
191 if (year != -1 && month != -1 && date != -1) {
200 if (year < 100) {
201 year
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/cms/
H A DTime.java52 int year = Integer.parseInt(d.substring(0, 4));
54 if (year < 1950 || year > 2049)
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/
H A DTime.java54 int year = Integer.parseInt(d.substring(0, 4));
56 if (year < 1950 || year > 2049)
/dalvik/libcore/xml/src/main/java/javax/xml/datatype/
H A DDatatypeFactory.java141 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
143 * year, month, day, hour, minute, and second.
170 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
172 * year, month, day, hour, minute, and second.
518 * whose lexical representation contains only year and month components.
557 * whose lexical representation contains only year and month components.
579 * <p>Any remaining milliseconds after determining the year and month are discarded.</p>
592 * <code>year</code> and <code>month</code> as defined in
605 * @param year Year of <code>Duration</code>.
608 * @return New <code>Duration</code> created using the specified <code>year</cod
613 newDurationYearMonth( final boolean isPositive, final BigInteger year, final BigInteger month) argument
646 newDurationYearMonth( final boolean isPositive, final int year, final int month) argument
781 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument
817 newXMLGregorianCalendar( final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) argument
879 newXMLGregorianCalendarDate( final int year, final int month, final int day, final int timezone) argument
[all...]
H A DXMLGregorianCalendar.java66 * <a name="datetimefield-year"/>
68 * <td> year </td>
74 * {@link #getEon()} is high order year value in billion of years.<br/>
77 * Given that <a href="http://www.w3.org/2001/05/xmlschema-errata#e2-63">XML Schema 1.0 errata</a> states that the year zero
79 * this class allows the year field to be set to zero. Otherwise,
80 * the year field value is handled exactly as described
82 * validation does not allow for the year field to have a value of zero.
196 * BigInteger year,
205 * int year,
215 * int year,
254 setYear(BigInteger year) argument
269 setYear(int year) argument
[all...]
/dalvik/libcore/sql/src/main/java/java/sql/
H A DDate.java24 * format only deals with year, month and day values. There are no values for
40 * Constructs a {@code Date} object corresponding to the supplied year,
45 * the year, specified as the year minus 1900. Must be in the
230 int year = Integer.parseInt(dateString.substring(0, firstIndex));
235 return new Date(year - 1900, month - 1, day);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DZipEntry.java275 int year = cal.get(Calendar.YEAR);
276 if (year < 1980) {
/dalvik/libcore/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
H A DDateTest.java105 static private long getTime(int year, int month, int date, int hour, argument
107 aCal.set(year, month, date, hour, minute, second);
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DSimpleDateFormatTest.java728 int year = cal.get(Calendar.YEAR);
730 assertTrue("Wrong default year start",
731 cal.get(Calendar.YEAR) == (year - 80));
1011 assertEquals("Incorrect year 2049", 2049, cal.get(Calendar.YEAR));
1013 int year = cal.get(Calendar.YEAR);
1014 assertTrue("Incorrect year 1950: " + year, year == 1950);
1017 assertEquals("Incorrect year 2000", 2000, cal.get(Calendar.YEAR));
1020 assertEquals("Incorrect year 5
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DTimeZoneTest.java213 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { argument
H A DCalendarTest.java527 int year = Integer.MIN_VALUE + 71;
529 cal.set(Calendar.YEAR, year + 1900);

Completed in 1065 milliseconds