/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 | 192 * Return the day # on which the given year starts. Days are counted 204 * Return the day # on which the given month starts. Days are counted 313 * Return the length (in days) of the given month. 336 * Return the number of days in the given Islamic year 396 int32_t days = julianDay - 1948440; local 400 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); 401 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); 406 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); 415 if ( days - startDate >= 25 && age > 0) { 422 while ((startDate = trueMonthStart(months)) > days) { [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());
|
Duration.java | 28 * | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ] 37 public int days; field in class:Duration 55 days = 0; 113 days = n; 132 cal.add(Calendar.DAY_OF_MONTH, sign*days); 145 + (24*60*60*days)
|
/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)) {
|
/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);
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
Duration.java | 28 public int days; field in class:Duration 44 days = 0; 96 days = n; 112 cal.add(Calendar.DAY_OF_MONTH, sign*days); 124 return factor * ((7*24*60*60*weeks) + (24*60*60*days) + (60*60*hours) + (60*minutes) +
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
Duration.java | 26 * | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ] 35 public int days; field in class:Duration 53 days = 0; 111 days = n; 130 cal.add(Calendar.DAY_OF_MONTH, sign*days); 143 + (24*60*60*days)
|
/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...] |
/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/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;
|
/frameworks/base/core/java/android/util/ |
TimeUtils.java | 136 /** @hide Field length that can hold 999 days of time */ 210 int days = 0, hours = 0, minutes = 0; local 213 days = seconds / SECONDS_PER_DAY; 214 seconds -= days * SECONDS_PER_DAY; 228 int myLen = accumField(days, 1, false, 0); 245 pos = printField(formatStr, days, 'd', pos, false, 0);
|
/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...] |
/external/valgrind/main/coregrind/ |
m_libcprint.c | 334 UInt t, ms, s, mins, hours, days; local 348 t /= 24; /* now in days */ 350 days = t; 352 VG_(sprintf)(buf, "%02u:%02u:%02u:%02u.%03u ", days, hours, mins, s, ms);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
Alarm.java | 89 * Days of week coded as integer 243 * Days of week code as a single int. 265 // Bitmask of all repeating days 268 DaysOfWeek(int days) { 269 mDays = days; 275 // no days 286 // count selected days 287 int dayCount = 0, days = mDays; local 288 while (days > 0) { 289 if ((days & 1) == 1) dayCount++ [all...] |