/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
readin.inp | 1 ``Democracy will not come today, this year,
|
/frameworks/base/core/java/android/widget/ |
DatePicker.java | 57 * set to {@code spinner}, the date can be selected using year, month, and day 65 * calendar-style view while the year can be selected separately using a list. 110 * @param year The year that was set. 115 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 169 * @param year The initial year. 175 public void init(int year, int monthOfYear, int dayOfMonth, 177 mDelegate.init(year, monthOfYear, dayOfMonth, onDateChangedListener); 183 * @param year The year [all...] |
DatePickerCalendarDelegate.java | 46 * A delegate for picking up a date (day / month / year). 70 /** Layout that contains the current month, day, and year. */ 73 /** Clickable layout that contains the current day and year. */ 248 * Compute the array representing the order of Month / Day / Year views in their layout. 291 // Compute indices of Month, Day and Year views 296 // Position the Year and MonthAndDay views within the header. 370 public void init(int year, int monthOfYear, int dayOfMonth, 372 mCurrentDate.set(Calendar.YEAR, year); 382 public void updateDate(int year, int month, int dayOfMonth) 392 final int year = mCurrentDate.get(Calendar.YEAR); local 530 final int year = mCurrentDate.get(Calendar.YEAR); local 593 adjustDayInMonthIfNeeded(mCurrentDate.get(Calendar.MONTH), year); local [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 29 private static final long YEAR = 12 * MONTH; 44 c.set(Calendar.YEAR, 2009); 81 assertEquals("1/19/2009 ? 2/9/2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 86 assertEquals("19.01.2009 - 09.02.2012", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 91 assertEquals("19/1/2009?9/2/2012", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 96 assertEquals("19/1/2009?9/2/2012", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 110 assertEquals("Jan 19, 2009 ? Feb 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL)); 111 assertEquals("Jan 2009 ? Feb 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_NO_MONTH_DAY | FORMAT_ABBREV_ALL)); 112 assertEquals("January 19, 2009 ? February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, 0)); 113 assertEquals("Monday, January 19, 2009 ? Thursday, February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_WEEKDAY)) [all...] |
/external/bison/build-aux/ |
update-copyright | 4 # Update an FSF copyright year list to include the current year. 35 # year is not the current year, then the statement is updated for the 36 # new year and it is reformatted to: 40 # 3. Expand copyright year intervals. (See "Environment variables" 98 # 7. Each copyright year is 2 or 4 digits, and years are separated by 105 # year. If unset or set to 0, only updated FSF copyright 111 # copyright year intervals in a reformatted FSF copyright statement 116 # 3. For testing purposes, you can set the assumed current year i [all...] |
mdate-sh | 154 # $4 = year or time 162 # $3 = year or time 187 # the time of day or the year. 189 *:*) set `date`; eval year=\$$# 204 # For the first six month of the year the time notation can also 205 # be used for files modified in the last year. 208 year=`expr $year - 1` 210 *) year=$3;; 214 echo $day $month $year [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 32 private int year = 0; field in class:XMPDateTimeImpl 80 this.year = intCalendar.get(Calendar.YEAR); 102 this.year = calendar.get(Calendar.YEAR); 130 return year; 137 public void setYear(int year) 139 this.year = Math.min(Math.abs(year), 9999); 319 calendar.set(Calendar.YEAR, year) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/time/ |
wcsftime.c | 329 case 'G': /* ISO 8601 year (four digits) */ 330 case 'g': /* ISO 8601 year (two digits) */ 333 ** year (the first Monday as the first day of week 1) as a decimal number 338 ** "Week 01 of a year is per definition the first week which has the 339 ** Thursday in this year, which is equivalent to the week which contains 340 ** the fourth day of January. In other words, the first week of a new year 341 ** is the week which has the majority of its days in the new year. Week 01 342 ** might also contain days from the previous year and the week before week 343 ** 01 of a year is the last week (52 or 53) of the previous year even i 350 int year; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
chnsecal.cpp | 60 * The start year of the Chinese calendar, the 61st year of the reign 61 * of Huang Di. Some sources use the first year of his reign, 65 static const int32_t CHINESE_EPOCH_YEAR = -2636; // Gregorian year 172 { 1, 1, 60, 60}, // YEAR 210 * Implement abstract Calendar method to return the extended year 212 * YEAR field as the cycle and year-of-cycle, or the EXTENDED_YEAR 213 * field as the continuous year count, depending on which is newer. 217 int32_t year; local [all...] |
tzrule.cpp | 262 AnnualTimeZoneRule::getStartInYear(int32_t year, 266 if (year < fStartYear || year > fEndYear) { 272 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), fDateTimeRule->getRuleDayOfMonth()); 279 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 1); 283 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 284 Grego::monthLength(year, fDateTimeRule->getRuleMonth())); 293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) { 297 ruleDay = Grego::fieldsToDay(year, month, dom); 356 int32_t year, month, dom, dow, doy, mid [all...] |
/external/icu/icu4c/source/i18n/ |
chnsecal.cpp | 60 * The start year of the Chinese calendar, the 61st year of the reign 61 * of Huang Di. Some sources use the first year of his reign, 65 static const int32_t CHINESE_EPOCH_YEAR = -2636; // Gregorian year 172 { 1, 1, 60, 60}, // YEAR 210 * Implement abstract Calendar method to return the extended year 212 * YEAR field as the cycle and year-of-cycle, or the EXTENDED_YEAR 213 * field as the continuous year count, depending on which is newer. 217 int32_t year; local [all...] |
tzrule.cpp | 262 AnnualTimeZoneRule::getStartInYear(int32_t year, 266 if (year < fStartYear || year > fEndYear) { 272 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), fDateTimeRule->getRuleDayOfMonth()); 279 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 1); 283 ruleDay = Grego::fieldsToDay(year, fDateTimeRule->getRuleMonth(), 284 Grego::monthLength(year, fDateTimeRule->getRuleMonth())); 293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) { 297 ruleDay = Grego::fieldsToDay(year, month, dom); 356 int32_t year, month, dom, dow, doy, mid [all...] |
/external/chromium_org/chrome/installer/gcapi/ |
gcapi_omaha_experiment.h | 24 // expiration date of now plus one year. If |shell_mode| is set to 32 // expiration date of now plus one year. If |shell_mode| is set to
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
ChromeDatePickerDialog.java | 22 int year, 25 super(context, 0, callBack, year, monthOfYear, dayOfMonth);
|
/external/javassist/sample/reflect/ |
Person.java | 30 public int getAge(int year) {
31 return year - birth;
|
/external/valgrind/main/docs/xml/ |
tech-docs.xml | 12 <year>&vg-lifespan;</year>
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DatePickerController.java | 29 void onYearSelected(int year); 31 void onDayOfMonthSelected(int year, int month, int day);
|
SimpleMonthView.java | 31 public void drawMonthDay(Canvas canvas, int year, int month, int day, 39 if (isOutOfRange(year, month, day)) {
|
/external/chromium_org/third_party/flot/ |
jquery.flot.time.min.js | 9 */(function(e){function n(e,t){return t*Math.floor(e/t)}function r(e,t,n,r){if(typeof e.strftime=="function")return e.strftime(t);var i=function(e,t){return e=""+e,t=""+(t==null?"0":t),e.length==1?t+e:e},s=[],o=!1,u=e.getHours(),a=u<12;n==null&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),r==null&&(r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var f;u>12?f=u-12:u==0?f=12:f=u;for(var l=0;l<t.length;++l){var c=t.charAt(l);if(o){switch(c){case"a":c=""+r[e.getDay()];break;case"b":c=""+n[e.getMonth()];break;case"d":c=i(e.getDate());break;case"e":c=i(e.getDate()," ");break;case"h":case"H":c=i(u);break;case"I":c=i(f);break;case"l":c=i(f," ");break;case"m":c=i(e.getMonth()+1);break;case"M":c=i(e.getMinutes());break;case"q":c=""+(Math.floor(e.getMonth()/3)+1);break;case"S":c=i(e.getSeconds());break;case"y":c=i(e.getFullYear()%100);break;case"Y":c=""+e.getFullYear();break;case"p":c=a?"am":"pm";break;case"P":c=a?"AM":"PM";break;case"w":c=""+e.getDay()}s.push(c),o=!1}else c=="%"?o=!0:s.push(c)}return s.join("")}function i(e){function t(e,t,n,r){e[t]=function(){return n[r].apply(n,arguments)}}var n={date:e};e.strftime!=undefined&&t(n,"strftime",e,"strftime"),t(n,"getTime",e,"getTime"),t(n,"setTime",e,"setTime");var r=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"];for(var i=0;i<r.length;i++)t(n,"get"+r[i],e,"getUTC"+r[i]),t(n,"set"+r[i],e,"setUTC"+r[i]);return n}function s(e,t){if(t.timezone=="browser")return new Date(e);if(!t.timezone||t.timezone=="utc")return i(new Date(e));if(typeof timezoneJS!="undefined"&&typeof timezoneJS.Date!="undefined"){var n=new timezoneJS.Date;return n.setTimezone(t.timezone),n.setTime(e),n}return i(new Date(e))}function l(t){t.hooks.processOptions.push(function(t,i){e.each(t.getAxes(),function(e,t){var i=t.options;i.mode=="time"&&(t.tickGenerator=function(e){var t=[],r=s(e.min,i),u=0,l=i.tickSize&&i.tickSize[1]==="quarter"||i.minTickSize&&i.minTickSize[1]==="quarter"?f:a;i.minTickSize!=null&&(typeof i.tickSize=="number"?u=i.tickSize:u=i.minTickSize[0]*o[i.minTickSize[1]]);for(var c=0;c<l.length-1;++c)if(e.delta<(l[c][0]*o[l[c][1]]+l[c+1][0]*o[l[c+1][1]])/2&&l[c][0]*o[l[c][1]]>=u)break;var h=l[c][0],p=l[c][1];if(p=="year"){if(i.minTickSize!=null&&i.minTickSize[1]=="year")h=Math.floor(i.minTickSize[0]);else{var d=Math.pow(10,Math.floor(Math.log(e.delta/o.year)/Math.LN10)),v=e.delta/o.year/d;v<1.5?h=1:v<3?h=2:v<7.5?h=5:h=10,h*=d}h<1&&(h=1)}e.tickSize=i.tickSize||[h,p];var m=e.tickSize[0];p=e.tickSize[1];var g=m*o[p];p=="second"?r.setSeconds(n(r.getSeconds(),m)):p=="minute"?r.setMinutes(n(r.getMinutes(),m)):p=="hour"?r.setHours(n(r.getHours(),m)):p=="month"?r.setMonth(n(r.getMonth(),m)):p=="quarter"?r.setMonth(3*n(r.getMonth()/3,m)):p=="year"&&r.setFullYear(n(r.getFullYear(),m)),r.setMilliseconds(0),g>=o.minute&&r.setSeconds(0),g>=o.hour&&r.setMinutes(0),g>=o.day&&r.setHours(0),g>=o.day*4&&r.setDate(1),g>=o.month*2&&r.setMonth(n(r.getMonth(),3)),g>=o.quarter*2&&r.setMonth(n(r.getMonth(),6)),g>=o.year&&r.setMonth(0);var y=0,b=Number.NaN,w;do{w=b,b=r.getTime(),t.push(b);if(p=="month"||p=="quarter")if(m<1){r.setDate(1);var E=r.getTime();r.setMonth(r.getMonth()+(p=="quarter"?3:1));var S=r.getTime();r.setTime(b+y*o.hour+(S-E)*m),y=r.getHours(),r.setHours(0)}else r.setMonth(r.getMonth()+m*(p=="quarter"?3:1));else p=="year"?r.setFullYear(r.getFullYear()+m):r.setTime(b+g)}while(b<e.max&&b!=w);return t},t.tickFormatter=function(e,t){var n=s(e,t.options);if(i.timeformat!=null)return r(n,i.timeformat,i.monthNames,i.dayNames);var u=t.options.tickSize&&t.options.tickSize[1]=="quarter"||t.options.minTickSize&&t.options.minTickSize[1]=="quarter",a=t.tickSize[0]*o[t.tickSize[1]],f=t.max-t.min,l=i.twelveHourClock?" %p":"",c=i.twelveHourClock?"%I":"%H",h;a<o.minute?h=c+":%M:%S"+l:a<o.day?f<2*o.day?h=c+":%M"+l:h="%b %d "+c+":%M"+l:a<o.month?h="%b %d":u&&a<o.quarter||!u&&a<o.year?f<o.year?h="%b":h="%b %Y":u&&a<o.year?f<o.year?h="Q%q":h="Q%q %Y":h="%Y";var p=r(n,h,i.monthNames,i.dayNames);return p})})})}var t={xaxi (…) property [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
_strptime.py | 148 # 2005-01-03 occurs before the first Monday of the year. Otherwise 274 def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon): 275 """Calculate the Julian day based on the year, week of the year, and day of 276 the week, with week_start_day representing whether the week of the year 278 first_weekday = datetime_date(year, 1, 1).weekday() 285 # Need to watch out for a week 0 (when the first day of the year is not 330 year = None 349 year = int(found_dict['y']) 353 if year <= 68 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
_strptime.py | 148 # 2005-01-03 occurs before the first Monday of the year. Otherwise 274 def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon): 275 """Calculate the Julian day based on the year, week of the year, and day of 276 the week, with week_start_day representing whether the week of the year 278 first_weekday = datetime_date(year, 1, 1).weekday() 285 # Need to watch out for a week 0 (when the first day of the year is not 330 year = None 349 year = int(found_dict['y']) 353 if year <= 68 [all...] |
/ndk/sources/host-tools/make-3.81/config/ |
mdate-sh | 132 # $4 = year or time 140 # $3 = year or time 165 # the time of day or the year. 167 *:*) set `date`; eval year=\$$# 182 # For the first six month of the year the time notation can also 183 # be used for files modified in the last year. 186 year=`expr $year - 1` 188 *) year=$3;; 192 echo $day $month $year [all...] |
/ndk/sources/host-tools/sed-4.2.1/build-aux/ |
mdate-sh | 135 # $4 = year or time 143 # $3 = year or time 168 # the time of day or the year. 170 *:*) set `date`; eval year=\$$# 185 # For the first six month of the year the time notation can also 186 # be used for files modified in the last year. 189 year=`expr $year - 1` 191 *) year=$3;; 195 echo $day $month $year [all...] |
/external/chromium_org/third_party/libxslt/libexslt/ |
date.c | 87 long year; member in struct:_exsltDateValDate 159 (IS_LEAP(dt->year) ? \ 164 (VALID_YEAR(dt->year) && VALID_MONTH(dt->mon) && VALID_MDAY(dt)) 186 #define DAY_IN_YEAR(day, month, year) \ 187 ((IS_LEAP(year) ? \ 198 * xs:gYear. It is supposed that @dt->year is big enough to contain 199 * the year. 221 dt->year = dt->year * 10 + (*cur - '0'); 226 /* year must be at least 4 digits (CCYY); over 1962 double year; local 2146 long diy, diw, year, ret; local [all...] |
/external/chromium_org/third_party/icu/source/samples/cal/ |
cal.c | 43 static void cal(int32_t month, int32_t year, 89 /* Number of months in a year (yes, 13) */ 92 /* Separation between months in year view */ 115 int32_t month = -1, year = -1; local 152 /* Get the month and year to display, if specified */ 155 /* Month and year specified */ 158 sscanf(argv[optInd + 1], "%d", (int*)&year); 171 /* Only year specified */ 173 sscanf(argv[optInd], "%d", (int*)&year); 190 cal(month, year, useLongNames, &status) [all...] |