/frameworks/base/media/libdrm/mobile1/include/objmng/ |
drm_inner.h | 26 #define INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time) do{\ 27 year = date / 10000;\
|
/cts/tests/src/android/provider/cts/ |
MediaStoreAudioTestHelper.java | 87 public static final int YEAR = 1992; 132 values.put(Media.YEAR, YEAR); 160 public static final int YEAR = 1992; 208 values.put(Media.YEAR, YEAR);
|
/external/v8/test/mjsunit/ |
to_number_order.js | 51 var year = { valueOf: function() { x += 1; return 2007; } }; 60 new Date(year, month, date, hours, minutes, seconds, ms); 65 Date(year, month, date, hours, minutes, seconds, ms); 69 Date.UTC(year, month, date, hours, minutes, seconds, ms); 118 new Date().setFullYear(year, month, date, hours, minutes, seconds, ms); 122 new Date().setUTCFullYear(year, month, date, hours, minutes, seconds, ms);
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/Statements/ |
forin-001.js | 24 ForIn_1( { length:4, company:"netscape", year:2000, 0:"zero" } ); 25 ForIn_2( { length:4, company:"netscape", year:2000, 0:"zero" } ); 26 ForIn_3( { length:4, company:"netscape", year:2000, 0:"zero" } ); 28 // ForIn_6({ length:4, company:"netscape", year:2000, 0:"zero" }); 29 // ForIn_7({ length:4, company:"netscape", year:2000, 0:"zero" }); 30 ForIn_8({ length:4, company:"netscape", year:2000, 0:"zero" });
|
/external/icu4c/i18n/ |
basictz.cpp | 145 // within roughly 1 year from the specified date 151 int32_t year, month, dom, dow, doy, mid; local 156 year, month, dom, dow, doy, mid); 157 int32_t weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 162 dtr, year, AnnualTimeZoneRule::MAX_YEAR); 168 // and within roughly 1 year from the next transition 175 year, month, dom, dow, doy, mid); 176 weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 181 dtr, year - 1, AnnualTimeZoneRule::MAX_YEAR); 205 year, month, dom, dow, doy, mid) 450 int32_t year, month, dom, dow, doy, mid; local [all...] |
chnsecal.h | 49 * first method is by sequential numbering from the 61st year of the reign 50 * of Huang Di, 2637 BCE, which is designated year 1 on the Chinese 51 * calendar. The second method uses 60-year cycles from the same starting 52 * point, which is designated year 1 of cycle 1. In this class, the 53 * <code>EXTENDED_YEAR</code> field contains the sequential year count. 55 * <code>YEAR</code> field contains the year of the cycle, a value between 59 * the calendar, with some sources starting in the first year of the reign 60 * of Huang Di, rather than the 61st. This gives continuous year numbers 237 * Returns the year in which the default century begin [all...] |
/frameworks/base/media/libdrm/mobile1/src/jni/ |
drm1_jni.c | 39 #define DAY_PER_YEAR 365 /* Days per year */ 41 /** Nonzero if 'y' is a leap year, else zero. */ 303 * \param year the year (since 1970) 314 uint32_t year, uint32_t month, uint32_t day, 323 assert(year >= 1970 329 /* Set 'day' to the number of days into the year. */ 330 day += ydays[month - 1] + (month > 2 && leap (year)) - 1; 333 day = day + 365 * (year - 1970) + nleap(year); 355 int32_t year, month, day, hour, minute, second; local 398 int32_t year, month, day, hour, minute, second; local [all...] |
/external/webkit/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...] |
/external/webkit/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...] |
/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...] |
/dalvik/libcore/xml/src/main/java/javax/xml/datatype/ |
DatatypeFactory.java | 141 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 143 * year, month, day, hour, minute, and second. 170 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 172 * year, month, day, hour, minute, and second. 186 * {@link java.util.Calendar#YEAR} = 1970, 360 * {@link java.util.Calendar#YEAR} = 1970, 518 * whose lexical representation contains only year and month components. 557 * whose lexical representation contains only year and month components. 572 * {@link java.util.Calendar#YEAR} = 1970, 579 * <p>Any remaining milliseconds after determining the year and month are discarded.</p [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
Calendar.java | 31 * {@code YEAR}, {@code MONTH}, {@code DAY}, 56 * fields, as well as their meaning. For example, the first month of the year 59 * and {@code YEAR}. See individual field documentation and subclass 83 * the first week of the month or year as a reference point. The first week of a 84 * month or year is defined as the earliest seven day period beginning on 86 * {@code getMinimalDaysInFirstWeek()} days of that month or year. Weeks 90 * designate the week before week 1 of a year as week <em>n</em> of the 91 * previous year. 96 * {@code Date} (such as only year and month but no day in the month), or 104 * of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc [all...] |
/external/icu4c/i18n/unicode/ |
calendar.h | 54 * <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, 90 * <code>UDate</code> (such as only year and month but no day in the month), 98 * start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc. 129 * specification of the historial Arabic astronomical calendar requires year, 177 YEAR, // Example: 1..big number 193 YEAR_WOY, // 'Y' Example: 1..big number - Year of Week of Year 540 * roll(Calendar::DATE, true). When rolling on the year or Calendar::YEAR field, it 541 * will roll the year value in the range between getMinimum(Calendar::YEAR) and th [all...] |
/bionic/libc/tzcode/ |
strftime.c | 441 case 'G': /* ISO 8601 year (four digits) */ 442 case 'g': /* ISO 8601 year (two digits) */ 445 ** year (the first Monday as the first day of week 1) as a decimal number 450 ** "Week 01 of a year is per definition the first week which has the 451 ** Thursday in this year, which is equivalent to the week which contains 452 ** the fourth day of January. In other words, the first week of a new year 453 ** is the week which has the majority of its days in the new year. Week 01 454 ** might also contain days from the previous year and the week before week 455 ** 01 of a year is the last week (52 or 53) of the previous year even i 462 int year; local [all...] |
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 155 This designator indicates the month of the year 184 This designator indicates the year. 190 public static final char YEAR = 'y'; 296 int year = value.indexOf('y'); local 298 if (month >= 0 && day >= 0 && year >= 0) { 300 if (year < month && year < day) { 307 if (day < year) { 313 if (month < year) { 327 * so that we get a four-digit year instead a two-digit year 576 int year = inDate.get(Calendar.YEAR); local [all...] |
Time.java | 76 * Year. TBD. Is this years since 1900 like in struct tm? 78 public int year; field in class:Time 86 * Day of year [0-365] 119 public static final int YEAR = 6; 159 this.year = 1970; 232 int y = this.year; 238 case YEAR: 243 int y = this.year; 244 // Year days are numbered from 0, so the last one is usually 364. 270 this.year = 0 [all...] |
/system/core/libcutils/ |
tzstrftime.c | 391 case 'G': /* ISO 8601 year (four digits) */ 392 case 'g': /* ISO 8601 year (two digits) */ 395 ** year (the first Monday as the first day of week 1) as a decimal number 400 ** "Week 01 of a year is per definition the first week which has the 401 ** Thursday in this year, which is equivalent to the week which contains 402 ** the fourth day of January. In other words, the first week of a new year 403 ** is the week which has the majority of its days in the new year. Week 01 404 ** might also contain days from the previous year and the week before week 405 ** 01 of a year is the last week (52 or 53) of the previous year even i 412 int year; local [all...] |
/dalvik/libcore/text/src/main/java/java/text/ |
SimpleDateFormat.java | 75 * <td>year</td> 81 * <td>month in year</td> 129 * <td>day in year</td> 141 * <td>week in year</td> 214 * zero-padded to this amount. Year is handled specially; that is, if the count 215 * of 'y' is 2, the year will be truncated to 2 digits. (if "yyyy" produces 267 * When parsing a date string using the abbreviated year pattern ("yy"), {@code 268 * SimpleDateFormat} must interpret the abbreviated year relative to some 282 * If the year pattern does not have exactly two 'y' characters, the year i 797 int year = calendar.get(Calendar.YEAR); local [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.5.28-1.js | 142 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 147 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 156 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 174 this.year = 0; 191 d.year = YearFromTime(t); 200 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.31-1.js | 139 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 144 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 153 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 170 this.year = 0; 187 d.year = YearFromTime(t); 196 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.32-1.js | 93 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 102 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 119 this.year = 0; 136 d.year = YearFromTime(t); 145 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
15.9.5.33-1.js | 93 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 102 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ); 119 this.year = 0; 136 d.year = YearFromTime(t); 145 d.value = TimeClip( MakeDate( MakeDay( d.year, d.month, d.date ), d.time ) );
|
/external/opencore/fileformats/mp4/parser/src/ |
movieheaderatom.cpp | 146 int32 year = 0; local 155 /*To take in to consideration at least 1 year among the number of years 206 // Considering a situation where by the date is 1st Jan of any year 224 year = (refYear + (numBlksOfFour * 4) + leftOverYears); 229 year, month, numDays, numHrs,
|
/frameworks/base/core/java/android/util/ |
DayOfMonthCursor.java | 23 * <li>Keeps track of current month, day, year</li> 41 * @param year The initial year. 48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { 49 super(year, month, weekStartDay);
|
/frameworks/base/docs/html/guide/tutorials/views/ |
hello-datepicker.jd | 6 <p>A {@link android.widget.DatePicker} is a widget that allows the user to select a month, day and year.</p> 67 mYear = c.get(Calendar.YEAR); 83 instance of {@link java.util.Calendar} and get the current year, month and day. Finally, we call 125 public void onDateSet(DatePicker view, int year, 127 mYear = year;
|