/external/chromium_org/third_party/icu/source/i18n/ |
persncal.cpp | 26 jalali_to_julian(int year, int month, int day) 31 year = year -475+2820; 34 daysNo=(year/2820)*1029983; 35 year=year % 2820; 37 daysNo+=(year/128)* 46751; 38 if((year/128)>21) 41 year=(year%128)+128 89 int year=0, month=0, day=0,scalarDays=0; local 330 int32_t year; local [all...] |
hebrwcal.cpp | 41 { -5000000, -5000000, 5000000, 5000000}, // YEAR 68 * Due to the rules for postponing the start of the year to avoid having 69 * certain holidays fall on the sabbath, the year can end up being three 90 * The cumulative # of days to the end of each month in a non-leap year 114 * The cumulative # of days to the end of each month in a leap year 225 int32_t year = get(UCAL_YEAR, status); local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 238 ++year; 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 252 --year; 317 int32_t year = get(UCAL_YEAR, status); local 560 int32_t year = (int32_t)( ((19. * m + 234.) \/ 235.) + 1.); \/\/ Years (approx) local 612 int32_t year; local [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon15808 40 // Year Month Day 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local [all...] |
indiancal.cpp | 61 { -5000000, -5000000, 5000000, 5000000}, // YEAR 94 * Determine whether the given gregorian year is a Leap year 96 static UBool isGregorianLeap(int32_t year) 98 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0))); 108 * @param eyear The year in Saka Era 128 * Return the number of days in the given Indian year 130 * @param eyear The year in Saka Era 163 int32_t year, month, day; local 266 int32_t year; local [all...] |
gregoimp.h | 93 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 138 * Return TRUE if the given year is a leap year. 139 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 140 * @return TRUE if the year is a leap year 142 static inline UBool isLeapYear(int32_t year); 146 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc [all...] |
/libcore/luni/src/main/java/java/util/ |
Grego.java | 56 * Return true if the given year is a leap year.
57 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
58 * @return true if the year is a leap year
60 public static final boolean isLeapYear(int year) {
61 // year&0x3 == year%4
62 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); 128 int year = (int)(400 * n400 + 100 * n100 + 4 * n4 + n1); local [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
WeekPicker.java | 32 * Creates a date object from the |year| and |week|. 34 public static Calendar createDateFromWeek(int year, int week) { 40 date.set(Calendar.YEAR, year); 63 int year = date.get(Calendar.YEAR); local 67 year--; 69 year++; 71 return year; 79 protected void setCurrentDate(int year, int week) [all...] |
TwoFieldDatePicker.java | 49 * @param year The year that was set. 50 * @param positionInYear The month or week in year. 52 void onMonthOrWeekChanged(TwoFieldDatePicker view, int year, int positionInYear); 65 int year = getYear(); 71 year += 1; 72 positionInYear = getMinPositionInYear(year); 74 year -= 1; 75 positionInYear = getMaxPositionInYear(year); 78 year = newVal [all...] |
TwoFieldDatePickerDialog.java | 18 private static final String YEAR = "year"; 30 * @param year The year that was set. 31 * @param positionInYear The position in the year that was set. 33 void onValueSet(int year, int positionInYear); 39 * @param year The initial year of the dialog. 44 int year, 48 this(context, 0, callBack, year, positionInYear, minValue, maxValue) [all...] |
WeekPickerDialog.java | 16 * @param year The initial year of the dialog. 21 int year, int weekOfYear, 23 this(context, 0, callBack, year, weekOfYear, minValue, maxValue); 30 * @param year The initial year of the dialog. 36 int year, 39 super(context, theme, callBack, year, weekOfYear, minValue, maxValue);
|
/external/lzma/CPP/Windows/ |
Time.cpp | 58 unsigned year, mon, day, hour, min, sec;
74 year = (unsigned)(kFileTimeStartYear + v / PERIOD_400 * 400);
80 year += temp * 100;
86 year += temp * 4;
92 year += temp;
95 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))
107 if (year < kDosTimeStartYear)
109 year -= kDosTimeStartYear; [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/ |
DateTime.java | 34 private final int year; field in class:DateTime 43 this.year = convertToYear(yearString); 44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); 54 int year = Integer.parseInt(yearString); local 58 if (year >= 0 && year < 50) 59 return 2000 + year; 61 return 1900 + year; 63 return 1900 + year; 65 return year; [all...] |
/external/icu/icu4c/source/i18n/ |
hebrwcal.cpp | 41 { -5000000, -5000000, 5000000, 5000000}, // YEAR 68 * Due to the rules for postponing the start of the year to avoid having 69 * certain holidays fall on the sabbath, the year can end up being three 90 * The cumulative # of days to the end of each month in a non-leap year 114 * The cumulative # of days to the end of each month in a leap year 225 int32_t year = get(UCAL_YEAR, status); local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 238 ++year; 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 252 --year; 317 int32_t year = get(UCAL_YEAR, status); local 567 int32_t year = (int32_t)( ((19. * m + 234.) \/ 235.) + 1.); \/\/ Years (approx) local 619 int32_t year; local [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon25707 40 // Year Month Day 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local [all...] |
persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 37 { -5000000, -5000000, 5000000, 5000000}, // YEAR 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) 111 ClockMath::floorDivide(25 * year + 11, 33, remainder); 116 * Return the day # on which the given year starts. Days are counted 119 int32_t PersianCalendar::yearStart(int32_t year) { 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian yea 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
taiwncal.cpp | 66 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year 68 int32_t year = kGregorianEpoch; local 72 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 76 year = internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 78 year = 1 - internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 81 return year; 116 int32_t year = internalGet(UCAL_YEAR); 119 year = 1-year; 127 year = year - kTaiwanEraStart [all...] |
indiancal.cpp | 61 { -5000000, -5000000, 5000000, 5000000}, // YEAR 94 * Determine whether the given gregorian year is a Leap year 96 static UBool isGregorianLeap(int32_t year) 98 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0))); 108 * @param eyear The year in Saka Era 128 * Return the number of days in the given Indian year 130 * @param eyear The year in Saka Era 163 int32_t year, month, day; local 266 int32_t year; local [all...] |
gregoimp.h | 93 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 138 * Return TRUE if the given year is a leap year. 139 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 140 * @return TRUE if the year is a leap year 142 static inline UBool isLeapYear(int32_t year); 146 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc [all...] |
buddhcal.cpp | 66 // EXTENDED_YEAR in BuddhistCalendar is a Gregorian year. 68 int32_t year; local 70 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 72 // extended year is a gregorian year, where 1 = 1AD, 0 = 1BC, -1 = 2BC, etc 73 year = internalGet(UCAL_YEAR, kGregorianEpoch - kBuddhistEraStart) 76 return year; 109 int32_t year = internalGet(UCAL_YEAR); 112 year = 1-year; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/page/ |
PagePopupController.idl | 40 DOMString formatMonth(long year, long zeroBaseMonth); 41 DOMString formatShortMonth(long year, long zeroBaseMonth);
|
/external/chromium_org/third_party/icu/source/test/compat/ |
tzone.pl | 8 print "Usage: tzone [year month day hour minute]\n"; 18 my $year = 0; 26 ($year, $month, $day, $hour, $minute) = @ARGV; 27 print "The date we are using is: $month-$day-$year $hour:$minute.\n"; 52 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
|
/external/icu/icu4c/source/test/compat/ |
tzone.pl | 8 print "Usage: tzone [year month day hour minute]\n"; 18 my $year = 0; 26 ($year, $month, $day, $hour, $minute) = @ARGV; 27 print "The date we are using is: $month-$day-$year $hour:$minute.\n"; 52 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
|
/frameworks/base/core/java/android/widget/ |
DatePickerController.java | 28 void onYearSelected(int year); 30 void onDayOfMonthSelected(int year, int month, int day);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
Utils.java | 23 int month, int year, String timezone) { 25 t.set(second, minute, hour, monthDay, month, year);
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
DateMath.cpp | 110 // Day of year for the first day of each month, where index 0 is January, and day 0 is January 1. 126 bool isLeapYear(int year) 128 if (year % 4 != 0) 130 if (year % 400 == 0) 132 if (year % 100 == 0) 137 static inline int daysInYear(int year) 139 return 365 + isLeapYear(year); 142 static inline double daysFrom1970ToYear(int year) 145 // Every fourth year is a leap year. 2004, 2008, and 2012 are leap years 441 int year = msToYear(ms); local 612 int year = 0; local [all...] |