Searched refs:year (Results 1 - 25 of 462) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-399.js31 var year = Number(String(date).match(/.*(200\d)/)[1]); variable
32 assertEquals(year, date.getFullYear());
H A Dregress-91.js29 var year = date.getYear(); variable
31 date.setYear(1900 + year);
32 assertEquals(year, date.getYear());
/external/v8/test/mjsunit/regress/
H A Dregress-399.js31 var year = Number(String(date).match(/.*(200\d)/)[1]); variable
32 assertEquals(year, date.getFullYear());
H A Dregress-91.js29 var year = date.getYear(); variable
31 date.setYear(1900 + year);
32 assertEquals(year, date.getYear());
/external/chromium_org/third_party/icu/source/i18n/
H A Dpersncal.cpp26 jalali_to_julian(int year, int month, int day) argument
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
89 int year=0, month=0, day=0,scalarDays=0; local
265 isLeapYear(int32_t year) argument
274 yearStart(int32_t year) argument
285 monthStart(int32_t year, int32_t month) const argument
330 int32_t year; local
[all...]
H A Dhebrwcal.cpp68 * 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 Djapancal.cpp36 int16_t year; member in struct:__anon10955
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 Dindiancal.cpp94 * 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...]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
H A DWeekPicker.java30 private Calendar createDateFromWeek(int year, int week) { argument
36 date.set(Calendar.YEAR, year);
52 int year = date.get(Calendar.YEAR);
56 year--;
58 year++;
60 return year;
68 protected void setCurrentDate(int year, int week) { argument
69 Calendar date = createDateFromWeek(year, week);
79 private int getNumberOfWeeks(int year) { argument
80 // Create a date in the middle of the year, wher
116 getMaxPositionInYear(int year) argument
124 getMinPositionInYear(int year) argument
[all...]
H A DTwoFieldDatePicker.java47 * @param year The year that was set.
48 * @param positionInYear The month or week in year.
50 void onMonthOrWeekChanged(TwoFieldDatePicker view, int year, int positionInYear); argument
63 int year = getYear();
69 year += 1;
70 positionInYear = getMinPositionInYear(year);
72 year -=1;
73 positionInYear = getMaxPositionInYear(year);
76 year
119 init(int year, int positionInYear, OnMonthOrWeekChangedListener onMonthOrWeekChangedListener) argument
126 isNewDate(int year, int positionInYear) argument
142 updateDate(int year, int positionInYear) argument
155 setCurrentDate(int year, int positionInYear) argument
193 getMaxPositionInYear(int year) argument
195 getMinPositionInYear(int year) argument
[all...]
H A DTwoFieldDatePickerDialog.java21 private static final String YEAR = "year";
33 * @param year The year that was set.
34 * @param positionInYear The week in year.
37 void onValueSet(int year, int positionInYear); argument
43 * @param year The initial year of the dialog.
48 int year,
52 this(context, 0, callBack, year, positionInYear, minValue, maxValue);
59 * @param year Th
46 TwoFieldDatePickerDialog(Context context, OnValueSetListener callBack, int year, int positionInYear, long minValue, long maxValue) argument
62 TwoFieldDatePickerDialog(Context context, int theme, OnValueSetListener callBack, int year, int positionInYear, long minValue, long maxValue) argument
111 onMonthOrWeekChanged(TwoFieldDatePicker view, int year, int positionInYear) argument
121 updateDate(int year, int weekOfYear) argument
[all...]
H A DWeekPickerDialog.java16 * @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, long minValue, long maxValue) argument
33 WeekPickerDialog(Context context, int theme, OnValueSetListener callBack, int year, int weekOfYear, long minValue, long maxValue) argument
/external/chromium_org/v8/test/cctest/
H A Dtest-date.cc39 int year, start_month, start_day, end_month, end_day, offset_sec; member in struct:DateCacheMock::Rule
49 int year, month, day; local
50 YearMonthDayFromDays(days, &year, &month, &day);
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec);
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { argument
64 if (Match(&rules_[i], year, month, day, time_in_day_sec)) {
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { argument
72 if (rule->year != 0 && rule->year != year) retur
89 ComputeRuleDay(int year, int month, int day) argument
102 TimeFromYearMonthDay(DateCache* date_cache, int year, int month, int day) argument
[all...]
/external/v8/test/cctest/
H A Dtest-date.cc39 int year, start_month, start_day, end_month, end_day, offset_sec; member in struct:DateCacheMock::Rule
49 int year, month, day; local
50 YearMonthDayFromDays(days, &year, &month, &day);
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec);
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { argument
64 if (Match(&rules_[i], year, month, day, time_in_day_sec)) {
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { argument
72 if (rule->year != 0 && rule->year != year) retur
89 ComputeRuleDay(int year, int month, int day) argument
102 TimeFromYearMonthDay(DateCache* date_cache, int year, int month, int day) argument
[all...]
/external/lzma/CPP/Windows/
H A DTime.cpp58 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/icu4c/i18n/
H A Dhebrwcal.cpp68 * 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 Dpersncal.cpp27 = {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 Djapancal.cpp36 int16_t year; member in struct:__anon18282
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 Dindiancal.cpp94 * 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...]
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DPagePopupController.idl39 [Conditional=CALENDAR_PICKER] DOMString formatMonth(long year, long zeroBaseMonth);
40 [Conditional=CALENDAR_PICKER] DOMString formatShortMonth(long year, long zeroBaseMonth);
/external/chromium_org/chrome/installer/util/
H A Dgoogle_update_experiment_util.cc32 // MON = 3 character month of year,
33 // YYYY = 4 digit year,
40 then.year += 1;
47 then.year,
/external/chromium_org/third_party/WebKit/Source/core/Resources/pagepopups/chromium/
H A DcalendarPickerChromium.css25 .year-month-button {
33 .year-list-view:focus,
43 .preparing .year-list-view:focus,
/external/chromium_org/third_party/icu/source/test/compat/
H A Dtzone.pl8 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/icu4c/test/compat/
H A Dtzone.pl8 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 Ddate.js81 function TimeInYear(year) {
82 return DaysInYear(year) * msPerDay;
86 // Compute number of days given a year, month, date.
92 function MakeDay(year, month, date) {
93 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return $NaN;
96 year = TO_INTEGER_MAP_MINUS_ZERO(year);
100 if (year < kMinYear || year > kMaxYear ||
105 // Now we rely on year an
[all...]

Completed in 544 milliseconds

1234567891011>>