/external/icu4c/test/perf/DateFmtPerf/ |
datedata.h | 11 static int days[] = { variable
|
/cts/libs/vogar-expect/src/vogar/util/ |
TimeUtilities.java | 87 long days = duration; local 90 if (days != 0) { 91 result.append(days);
|
/external/icu4c/i18n/ |
utmscale.c | 20 #define days (hours * 24) macro 32 {days, INT64_C(693594), INT64_C(-11368793), INT64_C(9981605), U_INT64_MIN, U_INT64_MAX, INT64_C(693595), INT64_C(693593), INT64_C(432000000000), INT64_C(-9223371604854775808), INT64_C(9223371604854775807)}, 33 {days, INT64_C(693594), INT64_C(-11368793), INT64_C(9981605), U_INT64_MIN, U_INT64_MAX, INT64_C(693595), INT64_C(693593), INT64_C(432000000000), INT64_C(-9223371604854775808), INT64_C(9223371604854775807)},
|
islamcal.cpp | 145 // a month as having 31 days. Since date parsing now uses range checks based 196 * Return the day # on which the given year starts. Days are counted 208 * Return the day # on which the given month starts. Days are counted 317 * Return the length (in days) of the given month. 340 * Return the number of days in the given Islamic year 400 int32_t days = julianDay - 1948440; local 404 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); 405 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); 410 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); 419 if ( days - startDate >= 25 && age > 0) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
EventRecurrenceFormatter.java | 38 StringBuilder days = new StringBuilder(); local 45 days.append(dayToString(recurrence.byday[i])); 46 days.append(","); 48 days.append(dayToString(recurrence.byday[count])); 50 return String.format(format, days.toString());
|
/bionic/libc/netbsd/nameser/ |
ns_ttl.c | 57 int secs, mins, hours, days, weeks, x; local 63 days = src % 7; src /= 7; 71 if (days) { 72 T(fmt1(days, 'D', &dst, &dstlen)); 83 if (secs || !(weeks || days || hours || mins)) {
|
/frameworks/opt/calendar/src/com/android/calendarcommon/ |
Duration.java | 24 * | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ] 33 public int days; field in class:Duration 51 days = 0; 113 days = n; 132 cal.add(Calendar.DAY_OF_MONTH, sign*days); 145 + (24*60*60*days)
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
Utils.java | 42 int days = 0, hours = 0, minutes = 0; local 44 days = seconds / SECONDS_PER_DAY; 45 seconds -= days * SECONDS_PER_DAY; 55 if (days > 0) { 57 days, hours, minutes, seconds));
|
/system/core/toolbox/ |
uptime.c | 42 int seconds, minutes, hours, days; local 49 days = time / 24; 51 if (days > 0) 52 sprintf(buffer, "%d days, %02d:%02d:%02d", days, hours, minutes, seconds);
|
/external/tcpdump/ |
print-chdlc.c | 149 u_int sec,min,hrs,days; local 188 days = hrs / 24; hrs -= days * 24; 189 printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec);
|
/external/bluetooth/glib/tests/ |
date-test.c | 181 GDate days[31]; /* This is the fast way, no allocation */ local 183 TEST("Sensible number of days in month", (dim > 0 && dim < 32)); 189 g_date_clear(days, 31); 200 d = &days[day-1]; 234 TEST("Last day of year equals number of days in year", 238 g_print("last day: %u days in year: %u\n", 243 TEST("Day of year is not more than number of days in the year", 317 /***** Days ******/ 321 TEST("Adding days gives a value greater than previous", 325 TEST("Forward days then backward days returns us to current day" [all...] |
testgdate.c | 188 GDate days[31]; /* This is the fast way, no allocation */ local 190 TEST("Sensible number of days in month", (dim > 0 && dim < 32)); 196 g_date_clear(days, 31); 207 d = &days[day-1]; 241 TEST("Last day of year equals number of days in year", 245 g_print("last day: %u days in year: %u\n", 250 TEST("Day of year is not more than number of days in the year", 324 /***** Days ******/ 328 TEST("Adding days gives a value greater than previous", 332 TEST("Forward days then backward days returns us to current day" [all...] |
/external/v8/test/cctest/ |
test-date.cc | 47 int days = DaysFromTime(time_sec * 1000); local 48 int time_in_day_sec = TimeInDay(time_sec * 1000, days) / 1000; 50 YearMonthDayFromDays(days, &year, &month, &day); 91 int days = DaysFromYearMonth(year, month); local 93 while (Weekday(days + day) != 6) day++;
|
/frameworks/support/v4/java/android/support/v4/util/ |
TimeUtils.java | 28 /** @hide Field length that can hold 999 days of time */ 102 int days = 0, hours = 0, minutes = 0; local 105 days = seconds / SECONDS_PER_DAY; 106 seconds -= days * SECONDS_PER_DAY; 120 int myLen = accumField(days, 1, false, 0); 137 pos = printField(formatStr, days, 'd', pos, false, 0);
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
DatatypeFactory.java | 194 * e.g. leap years have different days in the month = {@link java.util.Calendar#FEBRUARY} 205 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 218 * @param days of this <code>Duration</code> 232 final BigInteger days, 239 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 247 * @param days of this <code>Duration</code> 260 * BigInteger days, 269 final int days, 280 // days may not be set 281 BigInteger realDays = (days != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) days) : null 411 long days = val \/ 24L; local 429 BigInteger days = BigInteger.valueOf(val); local [all...] |
Duration.java | 34 * which consists of six fields (years, months, days, hours, 56 * <p>For example, 30 days cannot be meaningfully compared to one month. 68 * subtract 15 days from 1 month. See the javadoc of those methods 160 boolean daySet = isSet(DatatypeConstants.DAYS); 247 * Obtains the value of the DAYS field as an integer value, 251 * that this method works on the DAYS field. 253 * @return Days of this <code>Duration</code>. 256 return getFieldValueAsInt(DatatypeConstants.DAYS); 383 * In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned 388 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS 906 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
searchcvs.php | 9 $days = 7; variable 13 $where = "WHERE `date` >= DATE_SUB(CURDATE(), INTERVAL $days DAY)"; 19 array("regex" => "/days: ?(\d+)/", "sql" => "`date` >= DATE_SUB(CURDATE(), INTERVAL %d DAY)", "sqlpart" => "where"), 78 $title = "<span>$rows results total</span>Showing results " . ($offset + 1) . "-" . ($offset + $pagesize > $rows ? $rows : $offset + $pagesize) . " for " . ($_GET["q"] == "" ? "last $days days of commits" : "$et" . sanitize($_GET["q"], "text")); 116 <li><a href="?q=file%3A+org.eclipse.emf%2F+days%3A+7">file: org.eclipse.emf/ days: 7</a></li> 117 <li><a href="?q=days%3A200+author%3Amerks">days:200 author:merks</a></li>
|
/external/icu4c/samples/cal/ |
cal.c | 58 UChar *days [], UBool useLongNames, 61 static void free_days(UChar *days[]); 71 static void print_days(UChar *days [], FILE *f, UErrorCode *status); 74 UChar *days [], 79 UChar *days [], UChar *months [], 86 /* Number of days in a week */ 232 UChar *days [DAY_COUNT]; local 253 print_year(c, days, months, useLongNames, fdow, status); 269 print_month(c, days, useLongNames, fdow, status); 329 form. Also, reorder the days so that they are in the proper orde [all...] |
/external/stlport/src/ |
time_facets.cpp | 181 /* The number of days from the first day of the first ISO week of this 394 int days = __iso_week_days (t->tm_yday, t->tm_wday); variable 395 if (days < 0) { 398 days = __iso_week_days (t->tm_yday + (365 + __is_leap (year)), t->tm_wday); 405 days = d; 417 val = (long)days / 7 + 1;
|
/external/v8/src/ |
date.h | 84 // days = floor(time_ms / kMsPerDay). 85 static int TimeInDay(int64_t time_ms, int days) { 86 return static_cast<int>(time_ms - days * kMsPerDay); 90 // Given the number of days since the epoch, computes the weekday. 92 int Weekday(int days) { 93 int result = (days + 4) % 7; 147 int days = DaysFromTime(time_ms); local 148 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay); 150 YearMonthDayFromDays(days, &year, &month, &day); 167 // Given the number of days since the epoch, compute [all...] |
/external/valgrind/main/coregrind/ |
m_libcprint.c | 328 UInt t, ms, s, mins, hours, days; local 342 t /= 24; /* now in days */ 344 days = t; 346 VG_(sprintf)(buf, "%02u:%02u:%02u:%02u.%03u ", days, hours, mins, s, ms);
|
/libcore/luni/src/main/java/java/text/ |
SimpleDateFormat.java | 715 String[] days = isLong ? longs : shorts; local 716 buffer.append(days[calendar.get(Calendar.DAY_OF_WEEK)]); [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
time_facets.cpp | 181 /* The number of days from the first day of the first ISO week of this 394 int days = __iso_week_days (t->tm_yday, t->tm_wday); variable 395 if (days < 0) { 398 days = __iso_week_days (t->tm_yday + (365 + __is_leap (year)), t->tm_wday); 405 days = d; 417 val = (long)days / 7 + 1;
|
/bionic/libc/bionic/ |
time64.c | 151 /* Number of days since epoch on Jan 1st, 2008 GMT */ 204 Time64_T days = 0; local 213 days += (Time64_T)cycles * days_in_gregorian_cycle; 218 days += (Time64_T)cycles * days_in_gregorian_cycle; 220 TRACE3("# timegm/ cycles: %d, days: %lld, orig_year: %lld\n", cycles, days, orig_year); 225 days += length_of_year[IS_LEAP(year)]; 232 days -= length_of_year[IS_LEAP(year)]; 238 days += julian_days_by_month[IS_LEAP(orig_year)][date->tm_mon]; 239 days += date->tm_mday - 1 [all...] |
/frameworks/base/core/java/android/util/ |
TimeUtils.java | 238 /** @hide Field length that can hold 999 days of time */ 312 int days = 0, hours = 0, minutes = 0; local 315 days = seconds / SECONDS_PER_DAY; 316 seconds -= days * SECONDS_PER_DAY; 330 int myLen = accumField(days, 1, false, 0); 347 pos = printField(formatStr, days, 'd', pos, false, 0);
|