HomeSort by relevance Sort by last modified time
    Searched refs:days (Results 1 - 25 of 405) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu/icu4c/source/test/perf/DateFmtPerf/
datedata.h 15 static int days[] = { variable
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
unbirthday.py 4 # This is defined as the number of days from your birth until today
42 print 'There are no', day, 'days in that month!'
61 days = todaydate - bdaydate
62 print 'You have lived', days, 'days'
76 print nth(days - age), 'unbirthday'
91 days = year*365 # years, roughly
92 days = days + (year+3)//4 # plus leap years, roughly
93 days = days - (year+99)//100 # minus non-leap years every century
    [all...]
  /tools/loganalysis/src/com/android/loganalysis/util/
NumberFormattingUtil.java 31 * Convert days/hours/mins/secs/msecs into milliseconds.
33 public static long getMs(long days, long hours, long mins, long secs, long msecs) {
34 return (((24 * days + hours) * 60 + mins) * 60 + secs) * 1000 + msecs;
75 * Converts milliseconds to days/hours/mins/secs
78 * @return the duration in days/hours/mins/secs
84 final long days = TimeUnit.MILLISECONDS.toDays(ms); local
85 final long hrs = TimeUnit.MILLISECONDS.toHours(ms - TimeUnit.DAYS.toMillis(days));
86 final long mins = TimeUnit.MILLISECONDS.toMinutes(ms - TimeUnit.DAYS.toMillis(days)
    [all...]
  /external/v8/src/
date.cc 54 int days, int* year, int* month, int* day) {
56 // Check conservatively if the given 'days' has
57 // the same year and month as the cached 'days'.
58 int new_day = ymd_day_ + (days - ymd_days_);
61 ymd_days_ = days;
68 int save_days = days;
70 days += kDaysOffset;
71 *year = 400 * (days / kDaysIn400Years) - kYearsOffset;
72 days %= kDaysIn400Years;
74 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days);
    [all...]
date.h 64 // days = floor(time_ms / kMsPerDay).
65 static int TimeInDay(int64_t time_ms, int days) {
66 return static_cast<int>(time_ms - days * kMsPerDay);
70 // Given the number of days since the epoch, computes the weekday.
72 int Weekday(int days) {
73 int result = (days + 4) % 7;
165 int days = DaysFromTime(time_ms); local
166 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay);
168 YearMonthDayFromDays(days, &year, &month, &day);
185 // Given the number of days since the epoch, compute
    [all...]
  /external/syslinux/gpxe/src/arch/i386/interface/pcbios/
bios_timer.c 41 static int days = 0; local
57 days += 0x1800b0;
60 return ( days + ticks );
  /libcore/ojluni/src/main/java/java/time/
Period.java 64 import static java.time.temporal.ChronoUnit.DAYS;
96 * such as '2 years, 3 months and 4 days'.
98 * This class models a quantity or amount of time in terms of years, months and days.
114 * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}.
150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS));
161 * The number of days.
163 private final int days; field in class:Period
170 * The months and days units will be zero.
183 * The years and days units will be zero
266 int days = 0; local
336 int days = parseNumber(text, dayMatch, negate); local
1071 int days = in.readInt(); local
    [all...]
  /external/toybox/toys/other/
uptime.c 30 unsigned int days, hours, minutes; local
60 days = info.uptime/24;
61 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":"");
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoPeriodImpl.java 60 import static java.time.temporal.ChronoUnit.DAYS;
109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS));
124 * The number of days.
126 final int days; field in class:ChronoPeriodImpl
131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) {
136 this.days = days;
146 } else if (unit == ChronoUnit.DAYS) {
147 return days;
166 return years == 0 && months == 0 && days == 0
397 int days = in.readInt(); local
    [all...]
  /external/autotest/site_utils/
count_jobs_unittest.py 37 count_jobs.number_of_jobs_since(timedelta(days=999)))
43 Furthermore, 0 jobs should be counted within 0 or (-1) days.
55 for count, days in ((i, 1), (0, 0), (0, -1)):
58 count_jobs.number_of_jobs_since(timedelta(days=days)))
  /frameworks/opt/calendar/src/com/android/calendarcommon2/
Duration.java 24 * | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ]
33 public int days; field in class:Duration
51 days = 0;
116 days = n;
135 cal.add(Calendar.DAY_OF_MONTH, sign*days);
148 + (24*60*60*days)
  /libcore/ojluni/src/main/java/sun/util/calendar/
AbstractCalendar.java 57 // The number of days between January 1, 1 and January 1, 1970 (Gregorian)
120 long days = 0; // fixed date local
134 // days should be 0 and ms is in the range of -13:00 to
136 days = zoneOffset / DAY_IN_MILLIS;
143 days += millis / DAY_IN_MILLIS;
148 ++days;
154 --days;
159 days += EPOCH_OFFSET;
162 getCalendarDateFromFixedDate(date, days);
364 long days = 0 local
    [all...]
JulianCalendar.java 160 long days = JULIAN_EPOCH - 1 + (365 * (y - 1)) + dayOfMonth; local
163 days += (y - 1) / 4;
166 days += CalendarUtils.floorDivide(y - 1, 4);
169 days += ((367 * (long) month) - 362) / 12;
171 days += CalendarUtils.floorDivide((367 * (long) month) - 362, 12);
174 days -= CalendarUtils.isJulianLeapYear(jyear) ? 1 : 2;
179 cache.setCache(jyear, days, CalendarUtils.isJulianLeapYear(jyear) ? 366 : 365);
182 return days;
  /cts/apps/CtsVerifier/
create_test_certs.sh 34 -days 3650 \
52 -days 3650 \
69 -days 3650 \
  /development/scripts/
aday 14 return datetime.date(year, month + 1, 1) + datetime.timedelta(days=day - 1)
  /device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/include/
cert.h 67 int cert_new(cert_t *cert, int days, int ca, STACK_OF(X509_EXTENSION) * sk);
  /frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DurationTest.java 27 int sign, int weeks, int days, int hours,
35 assertEquals("Duration days is not equal for " + str, days, duration.days);
  /bionic/libc/dns/nameser/
ns_ttl.c 52 int secs, mins, hours, days, weeks, x; local
58 days = (int)(src % 7); src /= 7;
66 if (days) {
67 T(fmt1(days, 'D', &dst, &dstlen));
78 if (secs || !(weeks || days || hours || mins)) {
  /device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
ns_ttl.c 82 int secs, mins, hours, days, weeks, x; local
88 days = (int)(src % 7); src /= 7;
96 if (days) {
97 T(fmt1(days, 'D', &dst, &dstlen));
108 if (secs || !(weeks || days || hours || mins)) {
  /packages/apps/Settings/src/com/android/settings/notification/
ZenModeScheduleDaysSelection.java 40 public ZenModeScheduleDaysSelection(Context context, int[] days) {
47 if (days != null) {
48 for (int i = 0; i < days.length; i++) {
49 mDays.put(days[i], true);
100 protected void onChanged(int[] days) {
ZenModeScheduleRuleSettings.java 49 private static final String KEY_DAYS = "days";
156 final int[] days = mSchedule.days; local
157 if (days != null && days.length > 0) {
163 for (int j = 0; j < days.length; j++) {
164 if (day == days[j]) {
209 .setView(new ZenModeScheduleDaysSelection(mContext, mSchedule.days) {
211 protected void onChanged(final int[] days) {
213 if (Arrays.equals(days, mSchedule.days)) return
    [all...]
  /external/icu/icu4c/source/samples/cal/
cal.c 62 UChar *days [], UBool useLongNames,
65 static void free_days(UChar *days[]);
75 static void print_days(UChar *days [], FILE *f, UErrorCode *status);
78 UChar *days [],
83 UChar *days [], UChar *months [],
90 /* Number of days in a week */
236 UChar *days [DAY_COUNT]; local
257 print_year(c, days, months, useLongNames, fdow, status);
273 print_month(c, days, useLongNames, fdow, status);
333 form. Also, reorder the days so that they are in the proper orde
    [all...]
  /cts/libs/vogar-expect/src/vogar/util/
TimeUtilities.java 87 long days = duration; local
90 if (days != 0) {
91 result.append(days);
  /external/vogar/src/vogar/util/
TimeUtilities.java 87 long days = duration; local
90 if (days != 0) {
91 result.append(days);
  /external/google-tv-pairing-protocol/cpp/src/polo/util/
certificateutil.h 63 // @param days the number of days before the certificate expires
67 uint32_t days);

Completed in 1143 milliseconds

1 2 3 4 5 6 7 8 91011>>