Home
last modified time | relevance | path

Searched refs:days (Results 1 - 25 of 1382) sorted by relevance

12345678910>>...56

/third_party/typescript/tests/baselines/reference/
H A DdeclFileTypeofEnum.js2 enum days {
12 var weekendDay = days.saturday;
13 var daysOfMonth = days;
14 var daysOfYear: typeof days;
17 var days; variable
18 (function (days) {
19 days[days["monday"] = 0] = "monday";
20 days[days["tuesda
[all...]
/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c17 uint8_t days; in RtcGetMonthDays() local
25 days = RTC_TWO_MONTH_DAY + isLeapYear; in RtcGetMonthDays()
28 days = (oddMonth & RTC_ODD_MONTH_MASK) ? RTC_GREAT_MONTH_DAY : RTC_SMALL_MONTH_DAY; in RtcGetMonthDays()
30 return days; in RtcGetMonthDays()
56 uint32_t days; in RtcGetWeekDay() local
66 days = time->day - RTC_UNIT_DIFF; in RtcGetWeekDay()
69 days += RtcGetMonthDays(IS_LEAP_YEAR(time->year), month); in RtcGetWeekDay()
74 days += RTC_YEAR_DAYS(year); in RtcGetWeekDay()
77 if (days > (HDF_UINT32_MAX - RTC_BEGIN_WEEKDAY)) { in RtcGetWeekDay()
78 HDF_LOGE("RtcGetWeekDay: days i in RtcGetWeekDay()
88 uint32_t days; RtcTimeToTimestamp() local
123 uint32_t days = (uint32_t)(seconds / RTC_DAY_SECONDS); TimestampToRtcTime() local
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dtimeconv.c59 /* How many days come before each month (0-12). */
80 long days, rem, y; in time64_to_tm() local
84 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm()
89 --days; in time64_to_tm()
93 ++days; in time64_to_tm()
102 result->tm_wday = (4 + days) % 7; in time64_to_tm()
108 while (days < 0 || days >= (__isleap(y) ? 366 : 365)) { in time64_to_tm()
109 /* Guess a corrected year, assuming 365 days per year. */ in time64_to_tm()
110 long yg = y + math_div(days, 36 in time64_to_tm()
[all...]
/third_party/node/deps/v8/src/date/
H A Ddate.cc82 void DateCache::YearMonthDayFromDays(int days, int* year, int* month, in YearMonthDayFromDays() argument
85 // Check conservatively if the given 'days' has in YearMonthDayFromDays()
86 // the same year and month as the cached 'days'. in YearMonthDayFromDays()
87 int new_day = ymd_day_ + (days - ymd_days_); in YearMonthDayFromDays()
90 ymd_days_ = days; in YearMonthDayFromDays()
97 int save_days = days; in YearMonthDayFromDays()
99 days += kDaysOffset; in YearMonthDayFromDays()
100 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays()
101 days %= kDaysIn400Years; in YearMonthDayFromDays()
103 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days); in YearMonthDayFromDays()
203 int const days = DaysFromTime(time_ms); BreakDownTime() local
[all...]
H A Ddate.h59 // days = floor(time_ms / kMsPerDay).
60 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument
61 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay()
67 // Given the number of days since the epoch, computes the weekday.
69 int Weekday(int days) { in Weekday() argument
70 int result = (days + 4) % 7; in Weekday()
123 int days = DaysFromTime(time_ms); in EquivalentTime() local
124 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay); in EquivalentTime()
126 YearMonthDayFromDays(days, &year, &month, &day); in EquivalentTime()
143 // Given the number of days sinc
[all...]
/third_party/ltp/lib/
H A Dtst_rtctime.c47 * The number of days in the month.
61 int days; in tst_rtc_time_to_tm() local
64 days = time / 86400; in tst_rtc_time_to_tm()
68 tm->tm_wday = (days + 4) % 7; in tst_rtc_time_to_tm()
70 year = 1970 + days / 365; in tst_rtc_time_to_tm()
71 days -= (year - 1970) * 365 in tst_rtc_time_to_tm()
74 while (days < 0) { in tst_rtc_time_to_tm()
76 days += 365 + is_leap_year(year); in tst_rtc_time_to_tm()
79 tm->tm_yday = days + 1; in tst_rtc_time_to_tm()
84 newdays = days in tst_rtc_time_to_tm()
[all...]
/third_party/toybox/toys/other/
H A Duptime.c31 unsigned int weeks, days, hours, minutes; in uptime_main() local
55 days = info.uptime/24; in uptime_main()
58 weeks = days/7; in uptime_main()
59 days %= 7; in uptime_main()
62 days, (days!=1)?"s":"", in uptime_main()
67 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main()
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-davinci.c230 static void convertfromdays(u16 days, struct rtc_time *tm) in convertfromdays() argument
236 if (days >= tmp_days) in convertfromdays()
237 days -= tmp_days; in convertfromdays()
241 if (days >= tmp_days) { in convertfromdays()
242 days -= tmp_days; in convertfromdays()
246 tm->tm_mday = days + 1; in convertfromdays()
255 static void convert2days(u16 *days, struct rtc_time *tm) in convert2days() argument
258 *days = 0; in convert2days()
261 *days += rtc_year_days(1, 12, i); in convert2days()
263 *days in convert2days()
269 u16 days = 0; davinci_rtc_read_time() local
304 u16 days; davinci_rtc_set_time() local
365 u16 days = 0; davinci_rtc_read_alarm() local
404 u16 days; davinci_rtc_set_alarm() local
[all...]
H A Dlib.c28 * The number of days in the month.
37 * The number of days since January 1. (0 to 365)
52 int days; in rtc_time64_to_tm() local
55 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
58 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
60 year = 1970 + days / 365; in rtc_time64_to_tm()
61 days -= (year - 1970) * 365 in rtc_time64_to_tm()
64 while (days < 0) { in rtc_time64_to_tm()
66 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
69 tm->tm_yday = days in rtc_time64_to_tm()
[all...]
H A Drtc-pcap.c46 u32 days; /* days since 1/1/1970 */ in pcap_rtc_read_alarm() local
51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm()
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
63 u32 tod, days; in pcap_rtc_set_alarm() local
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm()
78 u32 tod, days; in pcap_rtc_read_time() local
83 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time()
84 secs += (days in pcap_rtc_read_time()
95 u32 tod, days; pcap_rtc_set_time() local
[all...]
H A Drtc-mc13xxx.c92 unsigned int seconds, days; in mc13xxx_rtc_set_time() local
96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time()
116 * write seconds=0 to prevent a day switch between writing days in mc13xxx_rtc_set_time()
123 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAY, days); in mc13xxx_rtc_set_time()
158 unsigned int seconds, days; in mc13xxx_rtc_read_alarm() local
173 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days); in mc13xxx_rtc_read_alarm()
189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm()
201 u32 seconds, days; in mc13xxx_rtc_set_alarm() local
225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm()
227 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAYA, days); in mc13xxx_rtc_set_alarm()
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-pcap.c46 u32 days; /* days since 1/1/1970 */ in pcap_rtc_read_alarm() local
51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm()
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
63 u32 tod, days; in pcap_rtc_set_alarm() local
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm()
78 u32 tod, days; in pcap_rtc_read_time() local
83 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time()
84 secs += (days in pcap_rtc_read_time()
95 u32 tod, days; pcap_rtc_set_time() local
[all...]
/third_party/icu/icu4c/source/samples/cal/
H A Dcal.c62 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]; in cal() local
257 print_year(c, days, months, useLongNames, fdow, status); in cal()
273 print_month(c, days, useLongNames, fdow, status); in cal()
333 form. Also, reorder the days s
354 free_days(UChar *days[]) free_days() argument
[all...]
/third_party/skia/third_party/externals/icu/source/samples/cal/
H A Dcal.c62 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]; in cal() local
257 print_year(c, days, months, useLongNames, fdow, status); in cal()
273 print_month(c, days, useLongNames, fdow, status); in cal()
333 form. Also, reorder the days s
354 free_days(UChar *days[]) free_days() argument
[all...]
/third_party/nghttp2/src/
H A Dtimegm.c38 int days; in nghttp2_timegm() local
45 days = (tm->tm_year - 70) * 365 + num_leap_year + tm->tm_yday; in nghttp2_timegm()
46 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm()
63 /* The number of days before ith month begins */
67 int days; in nghttp2_timegm_without_yday() local
74 days = (tm->tm_year - 70) * 365 + num_leap_year + daysum[tm->tm_mon] + in nghttp2_timegm_without_yday()
77 ++days; in nghttp2_timegm_without_yday()
79 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm_without_yday()
/kernel/linux/linux-6.6/kernel/time/
H A Dtimeconv.c52 long days, rem; in time64_to_tm() local
55 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm()
60 --days; in time64_to_tm()
64 ++days; in time64_to_tm()
73 result->tm_wday = (4 + days) % 7; in time64_to_tm()
105 udays = ((u64) days) + 2305843009213814918ULL; in time64_to_tm()
/third_party/musl/porting/liteos_a/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
25 days = secs / 86400; in __secs_to_tm()
29 days--; in __secs_to_tm()
32 wday = (3+days)%7; in __secs_to_tm()
35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm()
36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
/third_party/musl/porting/uniproton/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
25 days = secs / 86400; in __secs_to_tm()
29 days--; in __secs_to_tm()
32 wday = (3+days)%7; in __secs_to_tm()
35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm()
36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
/third_party/musl/porting/liteos_m/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
25 days = secs / 86400; in __secs_to_tm()
29 days--; in __secs_to_tm()
32 wday = (3+days)%7; in __secs_to_tm()
35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm()
36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
/third_party/musl/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
25 days = secs / 86400; in __secs_to_tm()
29 days--; in __secs_to_tm()
32 wday = (3+days)%7; in __secs_to_tm()
35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm()
36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
/third_party/openssl/test/certs/
H A Dmkcert.sh115 cert "$cert" "$exts" -signkey "${key}.pem" -set_serial 1 -days "${DAYS}"
157 -set_serial 2 -days "${DAYS}" "$@"
178 -set_serial 2 -days "${DAYS}"
200 -set_serial 2 -days "${DAYS}"
217 -set_serial 2 -days "${DAYS}"
267 -set_serial 2 -days "${DAYS}" "$@"
301 -set_serial 2 -days "${DAYS}" "$@"
330 -set_serial 2 -days "${DAYS}" "$@"
347 -set_serial 1 -days "${DAYS}" "$@"
356 cert "$cert" "" -signkey "${key}.pem" -set_serial 1 -days
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dislamcal.cpp233 // a month as having 31 days. Since date parsing now uses range checks based
434 * Return the length (in days) of the given month.
446 * Return the number of days in the given Islamic year
515 int32_t days = julianDay - getEpoc(); in handleComputeFields()
518 int32_t month = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields()
527 if ( days - startDate >= 25 && age > 0) { in handleComputeFields()
534 while ((startDate = trueMonthStart(month)) > days) { in handleComputeFields()
541 int32_t dayOfMonth = (days - monthStart(year, month)) + 1; in handleComputeFields()
544 int32_t dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields()
639 int32_t days in inTemporalLeapYear() local
[all...]
/kernel/linux/linux-5.10/arch/m68k/mac/
H A Dmisc.c550 /* How many days come before each month (0-12). */ in unmktime()
558 int days, rem, y, wday, yday; in unmktime() local
561 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime()
565 --days; in unmktime()
569 ++days; in unmktime()
576 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime()
585 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
587 /* Guess a corrected year, assuming 365 days per year. */ in unmktime()
588 long int yg = y + days / 36 in unmktime()
[all...]
/kernel/linux/linux-6.6/arch/m68k/mac/
H A Dmisc.c549 /* How many days come before each month (0-12). */ in unmktime()
557 int days, rem, y, wday, yday; in unmktime() local
560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime()
564 --days; in unmktime()
568 ++days; in unmktime()
575 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime()
584 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
586 /* Guess a corrected year, assuming 365 days per year. */ in unmktime()
587 long int yg = y + days / 36 in unmktime()
[all...]
/third_party/mesa3d/bin/
H A Dgen_calendar_entries.py114 date = date + datetime.timedelta(days=7)
116 date = date + datetime.timedelta(days=7)
125 If the next is .0, we have the release in seven days, if the next is .1,
142 return date + datetime.timedelta(days=delta)
158 date = date + datetime.timedelta(days=14)
160 date = date + datetime.timedelta(days=14)
209 days = 7
213 days = 14
217 date = date + datetime.timedelta(days=days)
[all...]

Completed in 12 milliseconds

12345678910>>...56