/external/wpa_supplicant/ |
os_win32.c | 55 int os_mktime(int year, int month, int day, int hour, int min, int sec, 62 if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || 68 tm.tm_year = year - 1900;
|
/cts/tests/tests/text/src/android/text/format/cts/ |
TimeTest.java | 79 time.year = 2008; 85 assertEquals(2008, cal.get(Calendar.YEAR)); 126 final int year = 2008; local 130 time.set(date, month, year); 131 assertEquals(year, time.year); 148 assertEquals(time.year, anotherTime.year); 190 assertEquals(time.year, anotherTime.year); 699 final int year = 2008; local [all...] |
/external/icu4c/common/ |
rbbicst.pl | 228 my ($sec, $min, $hour, , $day, $mon, $year, $wday, $yday, $isdst) = localtime; 229 $year += 1900; 234 print " * Copyright (C) 2003-$year,\n"; 344 print "// Copyright (C) 2002-$year International Business Machines Corporation \n";
|
/external/icu4c/i18n/ |
coptccal.h | 34 * the 1st month of the Coptic year. 40 * the 2nd month of the Coptic year. 46 * the 3rd month of the Coptic year. 52 * the 4th month of the Coptic year. 58 * the 5th month of the Coptic year. 64 * the 6th month of the Coptic year. 70 * the 7th month of the Coptic year. 76 * the 8th month of the Coptic year. 82 * the 9th month of the Coptic year. 88 * the 10th month of the Coptic year. [all...] |
/external/icu4c/test/intltest/ |
tzrulets.h | 47 UDate getUTCMillis(int32_t year, int32_t month, int32_t dom,
|
/external/icu4c/tools/toolutil/ |
writesrc.c | 50 char year[8]; local 56 strftime(year, sizeof(year), "%Y", lt); 58 fprintf(f, header, year, filename, buffer);
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
TimeTest.java | 34 // System.out.println("got: " + t.year + '-' 190 if (local.year != test.year2 || local.month != test.month2 196 local.year, local.month, local.monthDay, local.hour, local.minute); 208 if (local.year != test.year2 || local.month != test.month2 214 local.year, local.month, local.monthDay, local.hour, local.minute); 231 if (local.year != test.year2 || local.month != test.month2 238 local.year, local.month, local.monthDay, local.hour, local.minute, 253 if (local.year != test.year2 || local.month != test.month2 260 local.year, local.month, local.monthDay, local.hour, local.minute, 362 if (!t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23) [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
DateConversion.cpp | 74 monthName[t.month], t.monthDay, t.year + 1900); 81 t.monthDay, monthName[t.month], t.year + 1900);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.5.5.js | 29 because it avoids the "year 2000 problem." 101 function GetYear( year ) { 103 if ( year >= 1900 && year < 2000 ) { 104 return year - 1900; 106 return year; 109 return year - 1900;
|
15.9.5.23-1.js | 84 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 89 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 98 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 115 this.year = 0; 132 d.year = YearFromTime(t); 140 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.23-10.js | 83 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 88 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 97 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 114 this.year = 0; 131 d.year = YearFromTime(t); 139 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.23-11.js | 82 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 87 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 96 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 113 this.year = 0; 130 d.year = YearFromTime(t); 138 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.23-12.js | 80 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 85 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 94 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 111 this.year = 0; 128 d.year = YearFromTime(t); 136 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
/libcore/luni/src/main/java/java/sql/ |
Date.java | 24 * format only deals with year, month and day values. There are no values for 41 * Constructs a {@code Date} object corresponding to the supplied year, 46 * the year, specified as the year minus 1900. Must be in the 229 int year = Integer.parseInt(dateString.substring(0, firstIndex)); local 234 return new Date(year - 1900, month - 1, day);
|
/frameworks/base/core/java/android/widget/ |
DatePicker.java | 49 * year, month, and day spinners or a {@link CalendarView}. The set of spinners 131 * @param year The year that was set. 136 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 195 mTempDate.set(Calendar.YEAR, newVal); 200 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), 213 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { 214 setDate(year, month, monthDay); 236 // year 237 mYearSpinner = (NumberPicker) findViewById(R.id.year); [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Regress/ |
regress-216320.js | 83 year=date.substring(0,4); 100 if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true)){ 106 if(((month==1||month==3||month==5||month==7||month==8||month==10||month==12)&&day>31)||(year%4==0&&month==2&&day>29)||(year%4!=0&&month==2&&day>28)||((month==4||month==6||month==9||month==11)&&day>30)){ 116 year=date.substring(0,4); 137 if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true)){ 143 if(((month==1||month==3||month==5||month==7||month==8||month==10||month==12)&&day>31)||(year%4==0&&month==2&&day>29)||(year%4!=0&&month==2&&day>28)||((month==4||month==6||month==9||month==11)&&day>30)){ 201 if(today.getYear()<2000)year=today.getYear()+1900; else year=today.getYear() [all...] |
/frameworks/base/media/libdrm/mobile1/src/parser/ |
parser_rel.c | 25 int32_t drm_monthDays(int32_t year, int32_t month) 42 if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) 51 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, 55 day >= 1 && day <= drm_monthDays(year, month) && 66 int32_t year, mon, day, hour, min, sec; local 75 /** get year */ 81 year = atoi((char *)pHead); 128 if (0 != drm_checkDate(year, mon, day, hour, min, sec) 238 int32_t year, mon, day, hour, min, sec; local [all...] |
/libcore/luni/src/main/java/java/util/ |
SimpleTimeZone.java | 335 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { 340 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) { 344 if (!useDaylightTime() || era != GregorianCalendar.AD || year < startYear) { 370 year)) { 412 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) { 447 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) { 523 private boolean isLeapYear(int year) { 524 if (year > 1582) { 525 return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0) [all...] |
/external/chromium/base/metrics/ |
field_trial.cc | 34 const int year, 48 DCHECK_GT(year, 1970); 55 exploded.year = year; 226 const int kTwoYearsFromNow = exploded.year;
|
/external/chromium/net/ftp/ |
ftp_util.cc | 172 if (!base::StringToInt(rest, &time_exploded.year)) { 199 // Guess the year. 203 // If it's not possible for the parsed date to be in the current year, 204 // use the previous year. 208 time_exploded.year = current_exploded.year - 1; 210 time_exploded.year = current_exploded.year;
|
/external/openssl/crypto/asn1/ |
a_utctm.c | 248 int year; local 266 year = g2(s->data); 267 if (year < 50) 268 year += 100; 269 return_cmp(year, tm->tm_year);
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
date-format-tofte.js | 122 // leap year or not. 1 if leap year, 0 if not. 191 // there's a chance it's "week 1" of next year. 200 // there's a chance it belongs in the old year. 210 // of the previous year, as the date, and then just 219 // first day of the year fell on a thursday, or earlier. 222 // first day of the year fell on a friday, or later. 232 // A full numeric representation of a year, 4 digits 254 // A two-digit representation of a year 259 // The day of the year, zero indexed! 0 through 36 [all...] |
date-format-xparb.js | 303 // Find the first Thursday of the year 311 var year = this.getFullYear(); 312 return ((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year)));
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
date-format-tofte.js | 122 // leap year or not. 1 if leap year, 0 if not. 191 // there's a chance it's "week 1" of next year. 200 // there's a chance it belongs in the old year. 210 // of the previous year, as the date, and then just 219 // first day of the year fell on a thursday, or earlier. 222 // first day of the year fell on a friday, or later. 232 // A full numeric representation of a year, 4 digits 254 // A two-digit representation of a year 259 // The day of the year, zero indexed! 0 through 36 [all...] |
date-format-xparb.js | 303 // Find the first Thursday of the year 311 var year = this.getFullYear(); 312 return ((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year)));
|