/external/icu/icu4c/source/i18n/ |
gregocal.cpp | 37 * in year of cutover. 38 * 01/24/2000 aliu Revised computeJulianDay for YEAR YEAR_WOY WOY. 63 = {0,31,59,90,120,151,181,212,243,273,304,334}; // 0-based, for day-in-year 65 = {0,31,60,91,121,152,182,213,244,274,305,335}; // 0-based, for day-in-year 72 // This would seem to limit the year range to: 76 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 82 { 1, 1, 140742, 144683}, // YEAR 112 * YEAR 1 1 140742 144683 222 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, 230 set(UCAL_YEAR, year); 597 int32_t year = internalGet(UCAL_EXTENDED_YEAR); local 1181 int32_t year = kEpochYear; local [all...] |
olsontz.cpp | 228 // year boundary, SimpleTimeZone may return false result when DST is observed at the 229 // beginning of year. We could apply safe margin (day or two), but when one of recurrent 230 // rules falls around year boundary, it could return false result. Without setting the 231 // start year, finalZone works fine around the year boundary of the start year. 241 // small windows of time around the year boundary, this may 331 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, 340 return getOffset(era, year, month, dom, dow, millis, 341 Grego::monthLength(year, month) 440 int32_t year, month, dom, dow; local 572 int32_t year, month, dom, dow, doy, mid; local [all...] |
zonemeta.cpp | 163 int32_t year = 0, month = 0, day = 0, hour = 0, min = 0, n; local 170 year = 10*year + n; 215 UDate date = Grego::fieldsToDay(year, month - 1, day) * U_MILLIS_PER_DAY
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ChineseCalendar.java | 39 * first method is by sequential numbering from the 61st year of the reign 40 * of Huang Di, 2637 BCE, which is designated year 1 on the Chinese 41 * calendar. The second method uses 60-year cycles from the same starting 42 * point, which is designated year 1 of cycle 1. In this class, the 43 * <code>EXTENDED_YEAR</code> field contains the sequential year count. 45 * <code>YEAR</code> field contains the year of the cycle, a value between 49 * the calendar, with some sources starting in the first year of the reign 50 * of Huang Di, rather than the 61st. This gives continuous year numbers 107 * The start year of this Chinese calendar instance. 445 int year; local [all...] |
IslamicCalendar.java | 29 * The Islamic calendar is strictly lunar, and thus an Islamic year of twelve 30 * lunar months does not correspond to the solar year used by most other 31 * calendar systems, including the Gregorian. An Islamic year is, on average, 32 * about 354 days long, so each successive Islamic year starts about 11 days 33 * earlier in the corresponding Gregorian year. 99 * Constant for Muharram, the 1st month of the Islamic year. 105 * Constant for Safar, the 2nd month of the Islamic year. 111 * Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year. 117 * Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year. 123 * Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year 818 int year; local 845 int year =0, month=0, dayOfMonth=0, dayOfYear=0; local [all...] |
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
ReportAPI.java | 288 String year = fmt.format(new Date()); local 291 String copyright = "© " + year + " and later: Unicode, Inc. and others." 300 pw.println("<!-- © " + year + " and later: Unicode, Inc. and others. -->");
|
/external/libchrome/base/third_party/nspr/ |
prtime.cc | 79 * till the start of the given year Y. At the start of the year 4 81 * the year 5 A.D. this count is 1. The number of years divisible by 86 * start of the given year Y. The number of days at the start of the year 87 * 1 is 0 while the number of days at the start of the year 2 is 365 108 * The following array contains the day of year for the last day of 132 * Note that 1 year has < 2^25 seconds. So an PRInt32 is large enough. 181 * Returns 1 if the year is a leap year, 0 otherwise 469 PRInt32 year = -1; local [all...] |
/external/libcups/cups/ |
http-support.c | 69 { /* Months of the year */ 831 int day, year; /* Day of month and year */ local 846 if (sscanf(s, "%*s%d%15s%d%d:%d:%d", &day, mon, &year, &hour, &min, &sec) < 6) 849 DEBUG_printf(("4httpGetDateTime: day=%d, mon=\"%s\", year=%d, hour=%d, " 850 "min=%d, sec=%d", day, mon, year, hour, min, sec)); 871 if ((year & 3) == 0 && ((year % 100) != 0 || (year % 400) == 0)) 878 days += (year - 1970) * 365 + /* 365 days per year (normally) * [all...] |
/external/libtextclassifier/ |
types.h | 331 YEAR = 11 365 // Year of the date seen in the text match. 366 int year; member in struct:libtextclassifier2::DateParseData 367 // Month of the year starting with January = 1.
|
/external/wpa_supplicant_8/src/tls/ |
x509v3.c | 542 int year, month, day, hour, min, sec; local 563 if (sscanf(pos, "%02d", &year) != 1) { 565 "UTCTime year", buf, len); 568 if (year < 50) 569 year += 2000; 571 year += 1900; 580 if (sscanf(pos, "%04d", &year) != 1) { 582 "GeneralizedTime year", buf, len); 627 if (os_mktime(year, month, day, hour, min, sec, val) < 0) { 630 if (year < 1970) [all...] |
/external/zopfli/src/zopflipng/lodepng/ |
lodepng.h | 391 unsigned year; /*2 bytes used (0-65535)*/ member in struct:LodePNGTime [all...] |
/frameworks/base/core/java/android/text/format/ |
TimeFormatter.java | 290 case 'G': /* ISO 8601 year (four digits) */ 291 case 'g': /* ISO 8601 year (two digits) */ 293 int year = wallTime.getYear(); local 298 int len = isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; 299 // What yday (-3 ... 3) does the ISO year begin on? 301 // What yday does the NEXT ISO year begin on? 308 ++year; 316 --year; 317 yday += isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; 322 outputYear(year, false, true, modifier) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
DatePicker.java | 41 * A view for selecting a month / year / day based on a calendar like layout. 78 * @param year The year that was set. 83 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 149 mYearPicker = findViewById(R.id.year); 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); 252 } else if (c == DateFormat.YEAR && !didYear) { 271 public void updateDate(int year, int monthOfYear, int dayOfMonth) { 272 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) { 273 mYear = (mYearOptional && year == 0) ? getCurrentYear() : year 470 int year = (mYearOptional && !mHasYear) ? 0 : mYear; local [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DayPickerView.java | 186 final int position = (day.year - mController.getMinYear()) 442 cal.set(day.year, day.month, day.day); 476 int year = firstVisiblePosition / 12 + mController.getMinYear(); local 477 CalendarDay day = new CalendarDay(year, month, 1); 484 day.year++; 496 day.year--;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CalendarTest.java | 44 cal.set(Calendar.YEAR, 2002); 49 cal.set(Calendar.YEAR, 2002); 55 cal.set(Calendar.YEAR, 2002); 73 cal.set(Calendar.YEAR, 2002); 79 cal.set(Calendar.YEAR, 2002); 85 cal.set(Calendar.YEAR, 2002); 91 cal.set(Calendar.YEAR, 2002); 97 cal.set(Calendar.YEAR, 2002); 103 cal.set(Calendar.YEAR, 2002); 109 cal.set(Calendar.YEAR, 2002) 467 int year = Integer.MIN_VALUE + 71; local [all...] |
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 197 // 2 per year with 2^32 seconds would give ~272 transitions. 377 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { 382 long calc = (year / 400) * MILLISECONDS_PER_400_YEARS; 383 year %= 400; 385 calc += year * (365 * MILLISECONDS_PER_DAY); 386 calc += ((year + 3) / 4) * MILLISECONDS_PER_DAY; 388 if (year > 0) { 389 calc -= ((year - 1) / 100) * MILLISECONDS_PER_DAY; 392 boolean isLeap = (year == 0 || (year % 4 == 0 && year % 100 != 0)) 708 private int year; field in class:ZoneInfo.WallTime [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
HijrahChronology.java | 201 * <td>The ISO date of the first day of the minimum Hijrah year.</td> 204 * <td>yyyy - a numeric 4 digit year, for example "1434"</td> 207 * <td>The lengths of the 12 months of the year separated by whitespace. 208 * A numeric year property must be present for every year without any gaps. 273 * The minimum length of a year in days. 278 * The maximum length of a year in days. 426 * era, year-of-era, month-of-year and day-of-month fields. 429 * @param yearOfEra the year-of-er 649 int year = epochMonthToYear(epochMonth); local 930 int year = Integer.valueOf(key); local [all...] |
/libcore/ojluni/src/main/java/java/time/temporal/ |
WeekFields.java | 72 import static java.time.temporal.ChronoField.YEAR; 95 * Localized definitions of the day-of-week, week-of-month and week-of-year fields. 106 * The computations for day-of-week, week-of-month, and week-of-year are based 107 * on the {@linkplain ChronoField#YEAR proleptic-year}, 108 * {@linkplain ChronoField#MONTH_OF_YEAR month-of-year}, 112 * The values may not be aligned with the {@linkplain ChronoField#YEAR_OF_ERA year-of-Era} 121 * Together these two values allow a year or month to be divided into weeks. 144 * <h3>Week of Year</h3> 145 * One field is used: week-of-year 808 int year = temporal.get(YEAR); local 941 int year = YEAR.checkValidIntValue(fieldValues.get(YEAR)); \/\/ validate local [all...] |
/libcore/ojluni/src/main/java/java/time/zone/ |
ZoneRules.java | 76 import java.time.Year; 117 * The last year to have its transitions cached. 487 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); local 488 ZoneOffsetTransition[] transArray = findTransitionArray(year); 514 * <li>Normal, with one valid offset. For the vast majority of the year, the normal 550 * <li>Normal, with one valid offset. For the vast majority of the year, the normal 601 * <li>Normal, with one valid offset. For the vast majority of the year, the normal 716 * Finds the appropriate transition array for the given year. 718 * @param year the year, not nul 847 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); local 897 int year = findYear(epochSec, lastHistoricOffset); local [all...] |
/libcore/ojluni/src/main/java/java/util/ |
SimpleTimeZone.java | 56 * #setStartYear setStartYear} method can specify the year when the daylight 357 * Sets the daylight saving time starting year. 359 * @param year The daylight saving starting year. 361 public void setStartYear(int year) 363 startYear = year; 561 // Get the year in local time 563 int year = cdate.getNormalizedYear(); local 564 if (year >= startYear) { 567 offset = getOffset(cal, cdate, year, date) [all...] |
/libcore/ojluni/src/main/java/sun/util/calendar/ |
BaseCalendar.java | 63 // The base Gregorian year of FIXED_DATES[] 161 // Cache for the fixed date of January 1 and year length of the 168 protected final boolean hit(int year) { 169 return year == cachedYear; 184 protected void setCache(int year, long jan1, int len) { 185 cachedYear = year; 274 int year = bdate.getNormalizedYear(); local 278 year -= (int)((xm / 12) + 1); 280 bdate.setNormalizedYear(year); 283 year += (int)((month - 1) / 12) 421 int year; local 495 int year; local [all...] |
CalendarDate.java | 68 private int year; field in class:CalendarDate 123 return year; 126 public CalendarDate setYear(int year) { 127 if (this.year != year) { 128 this.year = year; 136 year += n; 143 * Returns whether the year represented by this 144 * <code>CalendarDate</code> is a leap year. If leap years ar [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
TCKHijrahChronology.java | 149 public void test_badDates(int year, int month, int dom) { 150 HijrahChronology.INSTANCE.date(year, month, dom); 156 int year = 1435; local 157 int lengthOfYear = HijrahChronology.INSTANCE.dateYearDay(year, 1).lengthOfYear(); 158 HijrahDate hd = HijrahChronology.INSTANCE.dateYearDay(year, lengthOfYear + 1); 192 int year = HijrahChronology.INSTANCE.prolepticYear(era, 1); local 234 assertEquals(fieldValues.get(ChronoField.YEAR), (Long) 1343L); 242 fieldValues.put(ChronoField.YEAR, 1343L); 246 assertEquals(fieldValues.get(ChronoField.YEAR), (Long) 1343L); 267 assertEquals(fieldValues.get(ChronoField.YEAR), (style == ResolverStyle.STRICT) ? null : (Long) 1343L) 295 final int year = 1434; local 439 final int year = 1343; local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKIsoFields.java | 67 import static java.time.temporal.ChronoField.YEAR; 154 .appendValue(YEAR).appendLiteral('-') 165 .appendValue(YEAR).appendLiteral('-') 176 .appendValue(YEAR).appendLiteral('-') 211 .appendValue(YEAR).appendLiteral(':') 221 .appendValue(YEAR).appendLiteral(':') 241 .appendValue(YEAR).appendLiteral(':') 443 // loop round at least one 400 year cycle, including before 1970 445 int year = 1960; local 451 if (date.getYear() != year) { [all...] |
/test/vti/dashboard/src/test/java/com/android/vts/job/ |
VtsProfilingStatsJobServletTest.java | 174 int year = 2017; local 179 LocalDateTime now = LocalDateTime.of(year, month.getValue(), day, hour, minute); 195 int year = 2017; local 200 LocalDateTime now = LocalDateTime.of(year, month.getValue(), day, hour, minute);
|