/external/chromium_org/third_party/icu/source/i18n/ |
gregoimp.cpp | 85 double Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) { 87 int32_t y = year - 1; 91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom 96 void Grego::dayToFields(double day, int32_t& year, int32_t& month, 103 // representation. We use 400-year, 100-year, and 4-year cycles. 104 // For example, the 4-year cycle has 4 years + 1 leap day; giving 106 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length 107 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle lengt [all...] |
gregocal.cpp | 35 * in year of cutover. 36 * 01/24/2000 aliu Revised computeJulianDay for YEAR YEAR_WOY WOY. 61 = {0,31,59,90,120,151,181,212,243,273,304,334}; // 0-based, for day-in-year 63 = {0,31,60,91,121,152,182,213,244,274,305,335}; // 0-based, for day-in-year 70 // This would seem to limit the year range to: 74 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 80 { 1, 1, 140742, 144683}, // YEAR 110 * YEAR 1 1 140742 144683 220 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, 228 set(UCAL_YEAR, year); 595 int32_t year = internalGet(UCAL_EXTENDED_YEAR); local 1178 int32_t year = kEpochYear; local [all...] |
tzrule.cpp | 262 AnnualTimeZoneRule::getStartInYear(int32_t year, 266 if (year < fStartYear || year > fEndYear) { 272 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), fDateTimeRule->getRuleDayOfMonth()); 279 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 1); 283 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 284 Grego::monthLength(year, fDateTimeRule->getRuleMonth())); 293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) { 297 ruleDay = Grego::fieldsToDay(year, month, dom); 356 int32_t year, month, dom, dow, doy, mid [all...] |
/external/icu4c/i18n/ |
gregoimp.cpp | 85 double Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) { 87 int32_t y = year - 1; 91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom 96 void Grego::dayToFields(double day, int32_t& year, int32_t& month, 103 // representation. We use 400-year, 100-year, and 4-year cycles. 104 // For example, the 4-year cycle has 4 years + 1 leap day; giving 106 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length 107 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle lengt [all...] |
gregocal.cpp | 35 * in year of cutover. 36 * 01/24/2000 aliu Revised computeJulianDay for YEAR YEAR_WOY WOY. 61 = {0,31,59,90,120,151,181,212,243,273,304,334}; // 0-based, for day-in-year 63 = {0,31,60,91,121,152,182,213,244,274,305,335}; // 0-based, for day-in-year 70 // This would seem to limit the year range to: 74 // range limit on the year field is smaller (~ +/-140000). [alan 3.0] 80 { 1, 1, 140742, 144683}, // YEAR 110 * YEAR 1 1 140742 144683 220 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, 228 set(UCAL_YEAR, year); 595 int32_t year = internalGet(UCAL_EXTENDED_YEAR); local 1178 int32_t year = kEpochYear; local [all...] |
tzrule.cpp | 262 AnnualTimeZoneRule::getStartInYear(int32_t year, 266 if (year < fStartYear || year > fEndYear) { 272 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), fDateTimeRule->getRuleDayOfMonth()); 279 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 1); 283 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 284 Grego::monthLength(year, fDateTimeRule->getRuleMonth())); 293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) { 297 ruleDay = Grego::fieldsToDay(year, month, dom); 356 int32_t year, month, dom, dow, doy, mid [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tzbdtest.h | 75 virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedChanges); 82 void verifyMapping(Calendar& cal, int year, int month, int dom, int hour,
|
/external/icu4c/test/intltest/ |
tzbdtest.h | 75 virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedChanges); 82 void verifyMapping(Calendar& cal, int year, int month, int dom, int hour,
|
/frameworks/base/core/java/android/util/ |
DayOfMonthCursor.java | 23 * <li>Keeps track of current month, day, year</li> 41 * @param year The initial year. 48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { 49 super(year, month, weekStartDay);
|
/frameworks/base/core/jni/ |
TimeUtils.h | 52 YEAR = 6, 69 inline void set(int sec, int min, int hour, int mday, int mon, int year, 77 this->t.tm_year = year;
|
/packages/apps/Calendar/src/com/android/calendar/ |
DayOfMonthCursor.java | 25 * <li>Keeps track of current month, day, year</li> 43 * @param year The initial year. 50 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { 51 super(year, month, weekStartDay);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/sqlite3/ |
dbapi2.py | 67 year, month, day = map(int, datepart.split("-")) 75 val = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/ |
dbapi2.py | 67 year, month, day = map(int, datepart.split("-")) 75 val = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds)
|
/external/bison/build-aux/ |
mdate-sh | 154 # $4 = year or time 162 # $3 = year or time 187 # the time of day or the year. 189 *:*) set `date`; eval year=\$$# 204 # For the first six month of the year the time notation can also 205 # be used for files modified in the last year. 208 year=`expr $year - 1` 210 *) year=$3;; 214 echo $day $month $year [all...] |
/external/chromium/base/ |
time_posix.cc | 90 exploded->year = timestruct.tm_year + 1900; 108 timestruct.tm_year = exploded.year - 1900; 129 (exploded.year < 1969 || exploded.year > 1970)) { 130 // If exploded.year is 1969 or 1970, take -1 as correct, with the 144 if (exploded.year < 1969) {
|
/external/chromium_org/third_party/lcov-1.9/bin/ |
updateversion.pl | 47 my ($sec, $min, $hour, $year, $month, $day); 51 ($sec, $min, $hour, $day, $month, $year) = localtime($stat[9]); 52 $year += 1900; 55 return (sprintf("%04d-%02d-%02d", $year, $month, $day), 56 sprintf("%04d%02d%02d%02d%02d.%02d", $year, $month, $day,
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
calendar.py | 97 def isleap(year): 99 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) 110 def weekday(year, month, day): 111 """Return weekday (0-6 ~ Mon-Sun) for year (1970-...), month (1-12), 113 return datetime.date(year, month, day).weekday() 116 def monthrange(year, month): 118 year, month.""" 121 day1 = weekday(year, month, 1 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
calendar.py | 97 def isleap(year): 99 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) 110 def weekday(year, month, day): 111 """Return weekday (0-6 ~ Mon-Sun) for year (1970-...), month (1-12), 113 return datetime.date(year, month, day).weekday() 116 def monthrange(year, month): 118 year, month.""" 121 day1 = weekday(year, month, 1 [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
SIPDate.java | 112 /** year member 114 protected int year; field in class:SIPDate 142 this.year == other.year && 155 year = -1; 244 year = javaCal.get(Calendar.YEAR); 291 encoding += year 360 if (year != -1) 361 javaCal.set(Calendar.YEAR, year) [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
DatatypeFactory.java | 148 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 150 * year, month, day, hour, minute, and second. 177 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 179 * year, month, day, hour, minute, and second. 193 * {@link java.util.Calendar#YEAR} = 1970, 367 * {@link java.util.Calendar#YEAR} = 1970, 525 * whose lexical representation contains only year and month components. 564 * whose lexical representation contains only year and month components. 579 * {@link java.util.Calendar#YEAR} = 1970, 586 * <p>Any remaining milliseconds after determining the year and month are discarded.</p [all...] |
/external/chromium/base/third_party/nspr/ |
prtime.cc | 91 * Note that 1 year has < 2^25 seconds. So an PRInt32 is large enough. 134 gregorian_date.year = exploded->tm_year; 172 // the most future date possible (year 2038). 176 // the most past date possible (year 1901). 193 * till the start of the given year Y. At the start of the year 4 195 * the year 5 A.D. this count is 1. The number of years divisible by 200 * start of the given year Y. The number of days at the start of the year 201 * 1 is 0 while the number of days at the start of the year 2 is 36 529 PRInt32 year = -1; local [all...] |
/external/chromium_org/base/third_party/nspr/ |
prtime.cc | 96 * Note that 1 year has < 2^25 seconds. So an PRInt32 is large enough. 139 gregorian_date.year = exploded->tm_year; 177 // the most future date possible (year 2038). 181 // the most past date possible (year 1901). 198 * till the start of the given year Y. At the start of the year 4 200 * the year 5 A.D. this count is 1. The number of years divisible by 205 * start of the given year Y. The number of days at the start of the year 206 * 1 is 0 while the number of days at the start of the year 2 is 36 534 PRInt32 year = -1; local [all...] |
/external/chromium_org/third_party/libxslt/libexslt/ |
date.c | 87 long year; member in struct:_exsltDateValDate 159 (IS_LEAP(dt->year) ? \ 164 (VALID_YEAR(dt->year) && VALID_MONTH(dt->mon) && VALID_MDAY(dt)) 186 #define DAY_IN_YEAR(day, month, year) \ 187 ((IS_LEAP(year) ? \ 198 * xs:gYear. It is supposed that @dt->year is big enough to contain 199 * the year. 221 dt->year = dt->year * 10 + (*cur - '0'); 226 /* year must be at least 4 digits (CCYY); over 1962 double year; local 2146 long diy, diw, year, ret; local [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
TimeTest.java | 43 time.year = 2008; 49 assertEquals(2008, cal.get(Calendar.YEAR)); 73 final int year = 2008; local 77 time.set(date, month, year); 78 assertEquals(year, time.year); 95 assertEquals(time.year, anotherTime.year); 115 assertEquals(time.year, anotherTime.year); 582 final int year = 2008; local [all...] |
/external/chromium/net/base/ |
x509_cert_types.cc | 108 exploded.year = ParseIntAndAdvance(&field, year_length, &valid); 115 exploded.year += exploded.year < 50 ? 2000 : 1900;
|