/external/protobuf/src/google/protobuf/stubs/ |
H A D | time.cc | 27 // Count the seconds from the given year (start at Jan 1, 00:00) to 100 years 29 int64 SecondsPer100Years(int year) { argument 30 if (year % 400 == 0 || year % 400 > 300) { 37 // Count the seconds from the given year (start at Jan 1, 00:00) to 4 years 39 int64 SecondsPer4Years(int year) { argument 40 if ((year % 100 == 0 || year % 100 > 96) && 41 !(year % 400 == 0 || year 50 IsLeapYear(int year) argument 54 SecondsPerYear(int year) argument 95 int year = 1; local 217 int year = 1; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
H A D | HebrewCalendar.java | 26 * solar year (approximately 365.24 days) is not an even multiple of 29 * interesting, the start of a year can be delayed by up to three days 31 * to prevent certain illegal year lengths. Finally, the lengths of certain 32 * months can vary depending on the number of days in the year. 36 * not come at the end of the year, calculations involving 86 * Constant for Tishri, the 1st month of the Hebrew year. 91 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 101 * Constant for Tevet, the 4th month of the Hebrew year. 106 * Constant for Shevat, the 5th month of the Hebrew year 343 HebrewCalendar(int year, int month, int date) argument 380 HebrewCalendar(int year, int month, int date, int hour, int minute, int second) argument 582 startOfYear(int year) argument 635 yearType(int year) argument 669 isLeapYear(int year) argument 675 monthsInYear(int year) argument [all...] |
H A D | BuddhistCalendar.java | 23 * except for the year and era. Years are numbered since the birth of the 136 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 143 public BuddhistCalendar(int year, int month, int date) { argument 144 super(year, month, date); 151 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 164 public BuddhistCalendar(int year, int month, int date, int hour, argument 167 super(year, month, date, hour, minute, second); 186 // EXTENDED_YEAR in BuddhistCalendar is a Gregorian year 188 int year; 190 year [all...] |
H A D | CopticCalendar.java | 32 * the 1st month of the Coptic year. 38 * the 2nd month of the Coptic year. 44 * the 3rd month of the Coptic year. 50 * the 4th month of the Coptic year. 56 * the 5th month of the Coptic year. 62 * the 6th month of the Coptic year. 68 * the 7th month of the Coptic year. 74 * the 8th month of the Coptic year. 80 * the 9th month of the Coptic year. 86 * the 10th month of the Coptic year 183 CopticCalendar(int year, int month, int date) argument 209 CopticCalendar(int year, int month, int date, int hour, int minute, int second) argument 299 copticToJD(long year, int month, int date) argument [all...] |
H A D | IndianCalendar.java | 48 * So When its a leap year in Gregorian calendar then Chaitra has 31 days. 51 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). 73 * Constant for Chaitra, the 1st month of the Indian year. 78 * Constant for Vaisakha, the 2nd month of the Indian year. 83 * Constant for Jyaistha, the 3rd month of the Indian year. 88 * Constant for Asadha, the 4th month of the Indian year. 93 * Constant for Sravana, the 5th month of the Indian year. 98 * Constant for Bhadra, the 6th month of the Indian year. 103 * Constant for Asvina, the 7th month of the Indian year. 108 * Constant for Kartika, the 8th month of the Indian year 234 IndianCalendar(int year, int month, int date) argument 260 IndianCalendar(int year, int month, int date, int hour, int minute, int second) argument 413 handleComputeMonthStart(int year, int month, boolean useMonth) argument 439 IndianToJD(int year, int month, int date) argument 478 gregorianToJD(int year, int month, int date) argument 539 isGregorianLeap(int year) argument [all...] |
H A D | TaiwanCalendar.java | 21 * except for the year and era. Years are numbered since 1912 AD (Gregorian). 137 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 144 public TaiwanCalendar(int year, int month, int date) { argument 145 super(year, month, date); 152 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 161 public TaiwanCalendar(int year, int month, int date, int hour, argument 164 super(year, month, date, hour, minute, second); 184 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year 186 int year = GREGORIAN_EPOCH; 189 year [all...] |
H A D | AnnualTimeZoneRule.java | 28 * The constant representing the maximum year used for designating a rule is permanent. 47 * @param startYear The first year when this rule takes effect. 48 * @param endYear The last year when this rule takes effect. If this 70 * Gets the first year when this rule takes effect. 72 * @return The start year of this rule. The year is in Gregorian calendar 80 * Gets the end year when this rule takes effect. 82 * @return The end year of this rule (inclusive). The year is in Gregorian calendar 90 * Gets the time when this rule takes effect in the given year 101 getStartInYear(int year, int prevRawOffset, int prevDSTSavings) argument [all...] |
H A D | PersianCalendar.java | 24 * in various ways, except its leap year rule, which is determined 25 * astronomically. The Persian year starts around the March equinox. 35 * The official rule for determination of the beginning of the Persian year 42 * expected that for about one year in every twenty-four years, the Afghan 47 * here, commonly known as the 33-year cycle rule, matches the astronomical 50 * commonly known algorithm, the 2820-year cycle, has been incorrectly 51 * designed to follow the tropical year instead of the spring equinoctial 52 * year, and fails to match the astronomical one as early as 2025 CE. 92 // len2 length of month in a leap year 93 // st days in year befor 225 PersianCalendar(int year, int month, int date) argument 253 PersianCalendar(int year, int month, int date, int hour, int minute, int second) argument 312 isLeapYear(int year) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | HebrewCalendar.java | 25 * solar year (approximately 365.24 days) is not an even multiple of 28 * interesting, the start of a year can be delayed by up to three days 30 * to prevent certain illegal year lengths. Finally, the lengths of certain 31 * months can vary depending on the number of days in the year. 35 * not come at the end of the year, calculations involving 86 * Constant for Tishri, the 1st month of the Hebrew year. 92 * Constant for Heshvan, the 2nd month of the Hebrew year. 98 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 110 * Constant for Shevat, the 5th month of the Hebrew year 363 HebrewCalendar(int year, int month, int date) argument 402 HebrewCalendar(int year, int month, int date, int hour, int minute, int second) argument 606 startOfYear(int year) argument 659 yearType(int year) argument 692 isLeapYear(int year) argument 698 monthsInYear(int year) argument [all...] |
H A D | BuddhistCalendar.java | 22 * except for the year and era. Years are numbered since the birth of the 144 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 152 public BuddhistCalendar(int year, int month, int date) { argument 153 super(year, month, date); 160 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 174 public BuddhistCalendar(int year, int month, int date, int hour, argument 177 super(year, month, date, hour, minute, second); 197 // EXTENDED_YEAR in BuddhistCalendar is a Gregorian year 199 int year; 201 year [all...] |
H A D | CopticCalendar.java | 32 * the 1st month of the Coptic year. 39 * the 2nd month of the Coptic year. 46 * the 3rd month of the Coptic year. 53 * the 4th month of the Coptic year. 60 * the 5th month of the Coptic year. 67 * the 6th month of the Coptic year. 74 * the 7th month of the Coptic year. 81 * the 8th month of the Coptic year. 88 * the 9th month of the Coptic year. 95 * the 10th month of the Coptic year 203 CopticCalendar(int year, int month, int date) argument 231 CopticCalendar(int year, int month, int date, int hour, int minute, int second) argument 320 copticToJD(long year, int month, int date) argument [all...] |
H A D | IndianCalendar.java | 47 * So When its a leap year in Gregorian calendar then Chaitra has 31 days. 50 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). 74 * Constant for Chaitra, the 1st month of the Indian year. 80 * Constant for Vaisakha, the 2nd month of the Indian year. 86 * Constant for Jyaistha, the 3rd month of the Indian year. 92 * Constant for Asadha, the 4th month of the Indian year. 98 * Constant for Sravana, the 5th month of the Indian year. 104 * Constant for Bhadra, the 6th month of the Indian year. 110 * Constant for Asvina, the 7th month of the Indian year. 116 * Constant for Kartika, the 8th month of the Indian year 256 IndianCalendar(int year, int month, int date) argument 283 IndianCalendar(int year, int month, int date, int hour, int minute, int second) argument 442 handleComputeMonthStart(int year, int month, boolean useMonth) argument 468 IndianToJD(int year, int month, int date) argument 507 gregorianToJD(int year, int month, int date) argument 568 isGregorianLeap(int year) argument [all...] |
H A D | TaiwanCalendar.java | 20 * except for the year and era. Years are numbered since 1912 AD (Gregorian). 147 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 155 public TaiwanCalendar(int year, int month, int date) { argument 156 super(year, month, date); 163 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 173 public TaiwanCalendar(int year, int month, int date, int hour, argument 176 super(year, month, date, hour, minute, second); 197 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year 199 int year = GREGORIAN_EPOCH; 202 year [all...] |
H A D | AnnualTimeZoneRule.java | 27 * The constant representing the maximum year used for designating a rule is permanent. 47 * @param startYear The first year when this rule takes effect. 48 * @param endYear The last year when this rule takes effect. If this 74 * Gets the first year when this rule takes effect. 76 * @return The start year of this rule. The year is in Gregorian calendar 86 * Gets the end year when this rule takes effect. 88 * @return The end year of this rule (inclusive). The year is in Gregorian calendar 98 * Gets the time when this rule takes effect in the given year 111 getStartInYear(int year, int prevRawOffset, int prevDSTSavings) argument [all...] |
H A D | PersianCalendar.java | 23 * in various ways, except its leap year rule, which is determined 24 * astronomically. The Persian year starts around the March equinox. 34 * The official rule for determination of the beginning of the Persian year 41 * expected that for about one year in every twenty-four years, the Afghan 46 * here, commonly known as the 33-year cycle rule, matches the astronomical 49 * commonly known algorithm, the 2820-year cycle, has been incorrectly 50 * designed to follow the tropical year instead of the spring equinoctial 51 * year, and fails to match the astronomical one as early as 2025 CE. 90 // len2 length of month in a leap year 91 // st days in year befor 223 PersianCalendar(int year, int month, int date) argument 251 PersianCalendar(int year, int month, int date, int hour, int minute, int second) argument 310 isLeapYear(int year) argument [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
H A D | 2-1-buildonly.c | 16 int week, year, dst; local 25 year = t.tm_yday;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | Grego.java | 60 * Return true if the given year is a leap year. 61 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 62 * @return true if the year is a leap year 64 public static final boolean isLeapYear(int year) { argument 65 // year&0x3 == year%4 66 return ((year 75 monthLength(int year, int month) argument 85 previousMonthLength(int year, int month) argument 97 fieldsToDay(int year, int month, int dom) argument 207 getDayOfWeekInMonth(int year, int month, int dayOfMonth) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | Grego.java | 58 * Return true if the given year is a leap year. 59 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 60 * @return true if the year is a leap year 62 public static final boolean isLeapYear(int year) { argument 63 // year&0x3 == year%4 64 return ((year 73 monthLength(int year, int month) argument 83 previousMonthLength(int year, int month) argument 95 fieldsToDay(int year, int month, int dom) argument 205 getDayOfWeekInMonth(int year, int month, int dayOfMonth) argument [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | hebrwcal.cpp | 71 * Due to the rules for postponing the start of the year to avoid having 72 * certain holidays fall on the sabbath, the year can end up being three 93 * The cumulative # of days to the end of each month in a non-leap year 117 * The cumulative # of days to the end of each month in a leap year 228 int32_t year = get(UCAL_YEAR, status); local 234 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 241 ++year; 248 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 255 --year; 260 set(UCAL_YEAR, year); 320 int32_t year = get(UCAL_YEAR, status); local 390 startOfYear(int32_t year, UErrorCode &status) argument 474 isLeapYear(int32_t year) argument 480 monthsInYear(int32_t year) argument 570 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) local 622 int32_t year; local [all...] |
H A D | japancal.cpp | 39 int16_t year; member in struct:__anon7344 336 if(eyear == kEraInfo[era].year) { 337 // Yes, we're in the first year of this era. 349 if(eyear == kEraInfo[era].year) { 366 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 368 int32_t year; local 372 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 374 // Subtract one because year starts at 1 375 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year 385 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year local [all...] |
H A D | persncal.cpp | 29 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 108 * Determine whether a year is a leap year in the Persian calendar 110 UBool PersianCalendar::isLeapYear(int32_t year) argument 113 ClockMath::floorDivide(25 * year + 11, 33, remainder); 118 * Return the day # on which the given year starts. Days are counted 121 int32_t PersianCalendar::yearStart(int32_t year) { argument 122 return handleComputeMonthStart(year,0,FALSE); 129 * @param year The Persian year 132 monthStart(int32_t year, int32_t month) const argument 189 int32_t year; local 213 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
H A D | taiwncal.cpp | 68 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year 70 int32_t year = kGregorianEpoch; local 74 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 78 year = internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 80 year = 1 - internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 83 return year; 118 int32_t year = internalGet(UCAL_YEAR); 121 year = 1-year; 129 year [all...] |
H A D | indiancal.cpp | 95 * Determine whether the given gregorian year is a Leap year 97 static UBool isGregorianLeap(int32_t year) argument 99 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0))); 109 * @param eyear The year in Saka Era 129 * Return the number of days in the given Indian year 131 * @param eyear The year in Saka Era. 139 * @param year Th 143 gregorianToJD(int32_t year, int32_t month, int32_t date) argument 164 int32_t year, month, day; local 197 IndianToJD(int32_t year, int32_t month, int32_t date) argument 267 int32_t year; local [all...] |
H A D | gregoimp.h | 95 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 140 * Return TRUE if the given year is a leap year. 141 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 142 * @return TRUE if the year is a leap year 144 static inline UBool isLeapYear(int32_t year); 148 * @param year Gregorian year, wit 260 isLeapYear(int32_t year) argument 266 monthLength(int32_t year, int32_t month) argument 275 dayToFields(double day, int32_t& year, int32_t& month, int32_t& dom, int32_t& dow) argument [all...] |
/external/icu/icu4c/source/test/compat/ |
H A D | tzone.pl | 10 print "Usage: tzone [year month day hour minute]\n"; 20 my $year = 0; 28 ($year, $month, $day, $hour, $minute) = @ARGV; 29 print "The date we are using is: $month-$day-$year $hour:$minute.\n"; 54 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
|