/external/clearsilver/cs/ |
H A D | test_first_last.cs | 8 <?cs each:day = Days ?> 9 <?cs var:day ?> 10 is_first: <?cs var:first(day) ?> 11 is_first: <?cs var:first(day.Abbr) ?> -> never 12 is_last: <?cs var:last(day) ?> 13 is_last: <?cs var:last(day.Abbr) ?> -> never
|
H A D | test3.cs | 2 <?cs def:Date._weekday(day,four) ?> 4 <?cs if:wday == day ?> 8 <?cs if:day == "6" ?> 10 <?cs elseif:day == "0" ?> 12 <?cs elseif:day == "1" ?> 14 <?cs elseif:day == "2" ?> 16 <?cs elseif:day == "3" ?> 18 <?cs elseif:day == "4" ?> 20 <?cs elseif:day == "5" ?> 77 <?cs each:day [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/ |
H A D | shell.js | 259 * year-month-day mode: dt = new Date(2000, 5, 1, ...); 275 // Use our date arithmetic functions to determine the local hour, day, etc. 288 // Use our date arithmetic functions to determine the UTC hour, day, etc. 379 var day = DayWithinYear( t ); 382 if ( (0 <= day) && (day < 31) ) { 385 if ( (31 <= day) && (day < (59+leap)) ) { 388 if ( ((59+leap) <= day) && (day < (9 [all...] |
H A D | jsref.js | 338 var day = DayWithinYear( t ); 341 if ( (0 <= day) && (day < 31) ) { 344 if ( (31 <= day) && (day < (59+leap)) ) { 347 if ( ((59+leap) <= day) && (day < (90+leap)) ) { 350 if ( ((90+leap) <= day) && (day < (120+leap)) ) { 353 if ( ((120+leap) <= day) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma_3/Date/ |
H A D | shell.js | 346 var day = DayWithinYear( t ); 350 if ( (0 <= day) && (day < 31) ) {return 0;} 351 if ( (31 <= day) && (day < (59+leap) )) {return 1;} 352 if ( ((59+leap) <= day) && (day < (90+leap) )) {return 2;} 353 if ( ((90+leap) <= day) && (day < (120+leap) )) {return 3;} 354 if ( ((120+leap) <= day) [all...] |
/external/icu4c/test/compat/ |
H A D | tzone.pl | 8 print "Usage: tzone [year month day hour minute]\n"; 20 my $day = 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`;
|
H A D | tzdate.c | 32 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime); 39 int year, month, day, hour, minute; local 44 sysyear = year = month = day = 0; 53 day = atoi(argv[3]); 61 systemtime = getSystemCurrentTime(systime, sysyear, month, day, hour, minute, useCurrentTime); 109 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime) { argument 121 ts.tm_mday = day;
|
/external/bluetooth/glib/tests/ |
H A D | testgdate.c | 39 d->day, 53 GDateDay day; local 94 TEST("Returned day is 1", g_date_get_day(d) == 1); 99 TEST("Bad day is invalid", !g_date_valid_day(G_DATE_BAD_DAY)); 133 TEST("GDate's \"Julian\" epoch's first day is valid", g_date_valid(d)); 194 day = 1; 198 while (day <= dim) 203 TEST("DMY triplet is valid", g_date_valid_dmy(day,m,y)); 207 d = &days[day-1]; 209 TEST("Cleared day i [all...] |
H A D | date-test.c | 43 GDateDay day; local 87 TEST("Returned day is 1", g_date_get_day(d) == 1); 92 TEST("Bad day is invalid", !g_date_valid_day(G_DATE_BAD_DAY)); 126 TEST("GDate's \"Julian\" epoch's first day is valid", g_date_valid(d)); 187 day = 1; 191 while (day <= dim) 196 TEST("DMY triplet is valid", g_date_valid_dmy(day,m,y)); 200 d = &days[day-1]; 202 TEST("Cleared day is invalid", !g_date_valid(d)); 204 g_date_set_dmy(d,day, [all...] |
/external/opencore/oscl/oscl/osclbase/src/ |
H A D | oscl_time.cpp | 80 int DayIndexFromDate(int year, int month, int day) argument 87 if (month > 12 || month < 0 || year < 1 || day < 1 || day > 31) 93 day + 120 int year, mon, day, hour, min, sec; local 132 day = atoi(buf); 142 days[DayIndexFromDate(year, mon, day)], 144 day, hour, min, sec, year); 158 int mon = 0, day, hour, min, sec; local 169 day [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/ |
H A D | jsref.js | 298 var day = DayWithinYear( t ); 301 if ( (0 <= day) && (day < 31) ) { 304 if ( (31 <= day) && (day < (59+leap)) ) { 307 if ( ((59+leap) <= day) && (day < (90+leap)) ) { 310 if ( ((90+leap) <= day) && (day < (120+leap)) ) { 313 if ( ((120+leap) <= day) [all...] |
/external/icu4c/i18n/ |
H A D | coptccal.cpp | 78 int32_t eyear, month, day, era, year; local 79 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); 93 internalSet(UCAL_DATE, day); 94 internalSet(UCAL_DAY_OF_YEAR, (30 * month) + day); 169 CopticCalendar::copticToJD(int32_t year, int32_t month, int32_t day) 171 return CECalendar::ceToJD(year, month, day, COPTIC_JD_EPOCH_OFFSET);
|
H A D | hebrwcal.cpp | 32 * time of day in sync with that of the Gregorian calendar, we use 33 * midnight, rather than sunset the day before. 363 // counting from noon on the day before. BAHARAD is an abbreviation of 368 * Finds the day # of the first day in the given Hebrew year. 390 int32_t day = CalendarCache::get(&gCache, year, status); local 392 if (day == 0) { 395 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # 396 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation 397 frac = frac % DAY_PARTS; // Time of day 429 absoluteDayToDayOfWeek(int32_t day) argument 641 int32_t day = startOfYear(eyear, status); local [all...] |
H A D | gregoimp.h | 100 #define kEarliestViableMillis -185331720384000000.0 // minimum representable by julian day -1e17 102 #define kLatestViableMillis 185753453990400000.0 // max representable by julian day +1e17 105 * The minimum supported Julian day. This value is equivalent to 117 * The maximum supported Julian day. This value is equivalent to 161 * Convert a year, month, and day-of-month, given in the proleptic 165 * @param dom 1-based day of month 166 * @return the day number, with day 0 == Jan 1 1970 171 * Convert a 1970-epoch day number to proleptic Gregorian year, 172 * month, day 273 dayToFields(double day, int32_t& year, int32_t& month, int32_t& dom, int32_t& dow) argument [all...] |
/external/icu4c/test/cintltst/ |
H A D | ccaltst.h | 77 static void verify1(const char* msg, UCalendar* c, UDateFormat* dat, int32_t year, int32_t month, int32_t day); 79 static void verify2(const char* msg, UCalendar* c, UDateFormat* dat, int32_t year, int32_t month, int32_t day,
|
/external/v8/src/ |
H A D | dateparser.cc | 38 int day = kNone; local 46 day = comp_[2]; 50 day = comp_[1]; 58 day = comp_[0]; 62 day = comp_[1]; 65 day = comp_[0]; 73 if (!Smi::IsValid(year) || !IsMonth(month) || !IsDay(day)) return false; 77 output->set(DAY, Smi::FromInt(day));
|
H A D | dateparser-inl.h | 42 DayComposer day; local 65 if (!day.Add(n)) return false; 66 in.Skip('-'); // Ignore suffix '-' for year, month, or day. 78 day.SetNamedMonth(KeywordTable::GetValue(index)); 109 return day.Write(out) && time.Write(out) && tz.Write(out);
|
H A D | date.js | 97 // - week day of first day. 112 // and same starting day for the year. The ECMAscript specification says 116 var day = MakeDay(EquivalentYear(YEAR_FROM_TIME(t)), MONTH_FROM_TIME(t), DATE_FROM_TIME(t)); 117 return TimeClip(MakeDate(day, TimeWithinDay(t))); 283 // Compute modified Julian day from year, month, date. 304 for (var day = 1; day <= length; day++) { 306 month_bits + day; [all...] |
/external/webkit/SunSpider/tests/sunspider-0.9/ |
H A D | date-format-xparb.js | 316 var day = (this.getDay() - (this.getDate() - 1)) % 7; 317 return (day < 0) ? (day + 7) : day; 321 var day = (this.getDay() + (Date.daysInMonth[this.getMonth()] - this.getDate())) % 7; 322 return (day < 0) ? (day + 7) : day;
|
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
H A D | date-format-xparb.js | 316 var day = (this.getDay() - (this.getDate() - 1)) % 7; 317 return (day < 0) ? (day + 7) : day; 321 var day = (this.getDay() + (Date.daysInMonth[this.getMonth()] - this.getDate())) % 7; 322 return (day < 0) ? (day + 7) : day;
|
/external/webkit/WebCore/html/ |
H A D | DateComponents.cpp | 44 // The oldest day of Gregorian Calendar is 1582-10-15. We don't support dates older than it. 71 static int dayOfWeek(int year, int month, int day) argument 86 int result = (day + 13 * shiftedMonth / 5 + lowYear + lowYear / 4 + highYear / 4 + 5 * highYear + 6) % 7; 92 int day = dayOfWeek(m_year, 0, 1); // January 1. local 93 return day == Thursday || (day == Wednesday && isLeapYear(m_year)) ? 53 : 52; 156 int day = m_monthDay + dayDiff; local 157 if (day > maxDayOfMonth(m_year, m_month)) { 158 day = m_monthDay; 163 ++day; 323 int day; local [all...] |
/external/icu4c/test/intltest/ |
H A D | calcasts.h | 8 * conversion between julian-day to fields and vice versa. 32 int32_t day; member in struct:CalendarCaseTest::TestCase
|
/external/wpa_supplicant/ |
H A D | os_win32.c | 55 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument 62 if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || 70 tm.tm_mday = day;
|
/external/clearsilver/cgi/ |
H A D | date.c | 36 * prefix.wday - day of the week 138 int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, x; local 151 sscanf(ip,"%25s %d %d:%d:%d %d",mname,&day,&hour,&min,&sec,&year); 158 day = atoi(t); 173 sscanf(ip,"%d %s %d %d:%d:%d",&day,mname,&year,&hour,&min,&sec); 181 if((x = lms->tm_mday - day))
|
/external/webkit/JavaScriptCore/wtf/ |
H A D | DateMath.cpp | 128 // Day of year for the first day of each month, where index 0 is January, and day 0 is January 1. 313 double dateToDaysFrom1970(int year, int month, int day) argument 327 return yearday + monthday + day - 1; 348 * the two years having the same leapness and the first day of the year, falling 349 * on the same day of the week. 425 else if (localTimeSeconds < 0) // Go ahead a day to make localtime work (does not work with 0) 464 double day = dateToDaysFrom1970(equivalentYear, month, dayInMonth); local 465 ms = (day * msPerDay) + msToMilliseconds(ms); 482 static inline double ymdhmsToSeconds(long year, int mon, int day, in argument 607 long day; local 939 double day = dateToDaysFrom1970(t.year + 1900, t.month, t.monthDay); local [all...] |