/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-399.js | 31 var year = Number(String(date).match(/.*(200\d)/)[1]); variable 32 assertEquals(year, date.getFullYear());
|
H A D | regress-91.js | 29 var year = date.getYear(); variable 31 date.setYear(1900 + year); 32 assertEquals(year, date.getYear());
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
H A D | PagePopupController.idl | 40 DOMString formatMonth(long year, long zeroBaseMonth); 41 DOMString formatShortMonth(long year, long zeroBaseMonth); 42 DOMString formatWeek(long year, long weekNumber, DOMString localizedStartDate);
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
H A D | WeekPicker.java | 32 * Creates a date object from the |year| and |week|. 34 public static Calendar createDateFromWeek(int year, int week) { argument 40 date.set(Calendar.YEAR, year); 63 int year = date.get(Calendar.YEAR); 67 year--; 69 year++; 71 return year; 79 protected void setCurrentDate(int year, int week) { argument 80 Calendar date = createDateFromWeek(year, week); 90 private int getNumberOfWeeks(int year) { argument 127 getMaxPositionInYear(int year) argument 135 getMinPositionInYear(int year) argument [all...] |
H A D | 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); argument 65 int year = getYear(); 71 year += 1; 72 positionInYear = getMinPositionInYear(year); 74 year -= 1; 75 positionInYear = getMaxPositionInYear(year); 78 year 121 init(int year, int positionInYear, OnMonthOrWeekChangedListener onMonthOrWeekChangedListener) argument 128 isNewDate(int year, int positionInYear) argument 144 updateDate(int year, int positionInYear) argument 157 setCurrentDate(int year, int positionInYear) argument 195 getMaxPositionInYear(int year) argument 197 getMinPositionInYear(int year) argument [all...] |
H A D | 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); argument 39 * @param year The initial year of the dialog. 44 int year, 48 this(context, 0, callBack, year, positionInYear, minValue, maxValue); 55 * @param year Th 42 TwoFieldDatePickerDialog(Context context, OnValueSetListener callBack, int year, int positionInYear, double minValue, double maxValue) argument 58 TwoFieldDatePickerDialog(Context context, int theme, OnValueSetListener callBack, int year, int positionInYear, double minValue, double maxValue) argument 100 onMonthOrWeekChanged(TwoFieldDatePicker view, int year, int positionInYear) argument 110 updateDate(int year, int weekOfYear) argument [all...] |
H A D | 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); 19 WeekPickerDialog(Context context, OnValueSetListener callBack, int year, int weekOfYear, double minValue, double maxValue) argument 33 WeekPickerDialog(Context context, int theme, OnValueSetListener callBack, int year, int weekOfYear, double minValue, double maxValue) argument
|
/external/lzma/CPP/Windows/ |
H A D | 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 143 GetSecondsSince1601(unsigned year, unsigned month, unsigned day, unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds) argument [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | hebrwcal.cpp | 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; 257 set(UCAL_YEAR, year); 317 int32_t year = get(UCAL_YEAR, status); local 387 startOfYear(int32_t year, UErrorCode &status) argument 471 isLeapYear(int32_t year) argument 477 monthsInYear(int32_t year) argument 560 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) local 612 int32_t year; local [all...] |
H A D | japancal.cpp | 36 int16_t year; member in struct:__anon12092 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 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year local [all...] |
H A D | persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) argument 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) { argument 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian year 130 monthStart(int32_t year, int32_t month) const argument 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
H A D | 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 [all...] |
H A D | indiancal.cpp | 94 * Determine whether the given gregorian year is a Leap year 96 static UBool isGregorianLeap(int32_t year) argument 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. 138 * @param year Th 142 gregorianToJD(int32_t year, int32_t month, int32_t date) argument 163 int32_t year, month, day; local 196 IndianToJD(int32_t year, int32_t month, int32_t date) argument 266 int32_t year; local [all...] |
H A D | 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, wit 258 isLeapYear(int32_t year) argument 264 monthLength(int32_t year, int32_t month) argument 273 dayToFields(double day, int32_t& year, int32_t& month, int32_t& dom, int32_t& dow) argument [all...] |
H A D | 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/icu/icu4c/source/i18n/ |
H A D | hebrwcal.cpp | 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; 257 set(UCAL_YEAR, year); 317 int32_t year = get(UCAL_YEAR, status); local 387 startOfYear(int32_t year, UErrorCode &status) argument 471 isLeapYear(int32_t year) argument 477 monthsInYear(int32_t year) argument 567 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) local 619 int32_t year; local [all...] |
H A D | japancal.cpp | 36 int16_t year; member in struct:__anon21898 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 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year local [all...] |
H A D | persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) argument 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) { argument 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian year 130 monthStart(int32_t year, int32_t month) const argument 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
H A D | 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 [all...] |
H A D | indiancal.cpp | 94 * Determine whether the given gregorian year is a Leap year 96 static UBool isGregorianLeap(int32_t year) argument 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. 138 * @param year Th 142 gregorianToJD(int32_t year, int32_t month, int32_t date) argument 163 int32_t year, month, day; local 196 IndianToJD(int32_t year, int32_t month, int32_t date) argument 266 int32_t year; local [all...] |
H A D | 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, wit 258 isLeapYear(int32_t year) argument 264 monthLength(int32_t year, int32_t month) argument 273 dayToFields(double day, int32_t& year, int32_t& month, int32_t& dom, int32_t& dow) argument [all...] |
H A D | 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/icu/source/test/compat/ |
H A D | 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/ |
H A D | 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/chromium_org/v8/src/ |
H A D | date.js | 61 function TimeInYear(year) { 62 return DaysInYear(year) * msPerDay; 66 // Compute number of days given a year, month, date. 72 function MakeDay(year, month, date) { 73 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return NAN; 76 year = TO_INTEGER_MAP_MINUS_ZERO(year); 80 if (year < kMinYear || year > kMaxYear || 85 // Now we rely on year an [all...] |