Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 231) sorted by relevance

12345678910

/openbmc/u-boot/drivers/rtc/
H A Drtc-lib.c41 int days; in rtc_to_tm() local
43 days = div_u64_rem(time, 86400, &secs); in rtc_to_tm()
46 tm->tm_wday = (days + 4) % 7; in rtc_to_tm()
48 year = 1970 + days / 365; in rtc_to_tm()
49 days -= (year - 1970) * 365 in rtc_to_tm()
52 while (days < 0) { in rtc_to_tm()
54 days += 365 + is_leap_year(year); in rtc_to_tm()
57 tm->tm_yday = days + 1; in rtc_to_tm()
62 newdays = days - rtc_month_days(month, year); in rtc_to_tm()
65 days = newdays; in rtc_to_tm()
[all …]
H A Dmcfrtc.c30 rtc_days = rtc->days; in rtc_get()
59 int days, i, months; in rtc_set() local
72 for (i = STARTOFTIME, days = 0; i < tmp->tm_year; i++) { in rtc_set()
73 days += 365 + isleap(i); in rtc_set()
79 days += month_days[i]; in rtc_set()
82 days += isleap(i); in rtc_set()
85 days += tmp->tm_mday - 1; in rtc_set()
87 rtc->days = days; in rtc_set()
H A Ddate.c85 int days, hours; in rtc_mktime() local
93 days = (unsigned long)(year / 4 - year / 100 + year / 400 + in rtc_mktime()
96 hours = days * 24 + tm->tm_hour; in rtc_mktime()
/openbmc/u-boot/include/linux/
H A Dtime.h84 long days, rem; member
89 days = ((long) *tim_p) / SECSPERDAY;
94 --days;
104 if ((res->tm_wday = ((EPOCH_WDAY + days) % DAYSPERWEEK)) < 0)
109 if (days >= 0)
114 if (days < year_lengths[yleap])
117 days -= year_lengths[yleap];
126 days += year_lengths[yleap];
127 } while (days < 0);
131 res->tm_yday = days;
[all …]
/openbmc/linux/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 & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time()
95 u32 tod, days; in 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()
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()
H A Drtc-ftrtc010.c68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local
74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time()
77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time()
112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local
174 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe()
176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
H A Dlib_test.c49 s64 days; in rtc_time64_to_tm_test_date_range() local
55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range()
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
H A Dlib.c55 int days; in rtc_time64_to_tm() local
63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
96 udays = ((u32) days) + 719468; in rtc_time64_to_tm()
/openbmc/bmcweb/redfish-core/src/utils/
H A Dtime_utils.cpp92 out += std::chrono::days(ticks); in fromDurationString()
173 std::chrono::days days = std::chrono::floor<std::chrono::days>(ms); in toDurationString() local
174 ms -= days; in toDurationString()
185 if (days.count() > 0) in toDurationString()
187 daysStr = std::format("{}D", days.count()); in toDurationString()
264 using days = std::chrono::duration< in toISO8061ExtendedStr() typedef
268 days d = std::chrono::duration_cast<days>(t); in toISO8061ExtendedStr()
285 t = days(1) - std::chrono::duration<IntType, Period>(1); in toISO8061ExtendedStr()
335 std::chrono::days days = std::chrono::floor<std::chrono::days>(dur);
336 std::chrono::sys_days sysDays(days);
[all …]
/openbmc/linux/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()
H A Dtime_test.c68 s64 days; in time64_to_tm_test_date_range() local
74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range()
77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
/openbmc/linux/arch/m68k/mac/
H A Dmisc.c557 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()
587 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
590 days -= (yg - y) * 365 + in unmktime()
595 yday = days; /* day in the year. Not currently used. */ in unmktime()
597 for (y = 11; days < (long int) ip[y]; --y) in unmktime()
[all …]
/openbmc/telemetry/redfish-tests/
H A Dredfish_requests.py117 days = int(time / (24 * 60 * 60))
130 days = r.group(1)
135 if days is not None:
136 result += int(days[:-1]) * 60 * 60 * 24
/openbmc/openbmc/meta-security/meta-integrity/scripts/
H A Dima-gen-CA-signed.sh44 openssl req -new -nodes -utf8 -sha256 -days 36500 -batch -config $GENKEY \
47 openssl x509 -req -in csr_ima.pem -days 36500 -extfile $GENKEY -extensions v3_usr \
/openbmc/openbmc/poky/meta/files/common-licenses/
H A DParity-7.0.027 1. You don't use it for more than thirty days.
45 3. Take these steps within thirty days.
51days of learning you broke the rule. You're excused for unknowingly breaking [Notices](#notices) …
/openbmc/phosphor-certificate-manager/
H A Dx509_utils.cpp125 int days = 0; in validateCertificateStartDate() local
133 ASN1_TIME_diff(&days, &secs, epoch.get(), notBefore); in validateCertificateStartDate()
135 if (days < 0 || secs < 0) in validateCertificateStartDate()
H A Dcertificate.cpp536 int days = 0; in populateProperties() local
545 ASN1_TIME_diff(&days, &secs, epoch.get(), notAfter); in populateProperties()
546 validNotAfter((days * dayToSeconds) + secs); in populateProperties()
549 ASN1_TIME_diff(&days, &secs, epoch.get(), notBefore); in populateProperties()
550 validNotBefore((days * dayToSeconds) + secs); in populateProperties()
/openbmc/linux/fs/affs/
H A Damigaffs.h39 __be32 days; member
45 __be16 days; member
/openbmc/linux/drivers/net/wan/
H A Dhdlc_cisco.c216 u32 sec, min, hrs, days; in cisco_rx() local
221 days = hrs / 24; hrs -= days * 24; in cisco_rx()
223 days, hrs, min, sec); in cisco_rx()
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/static/js/
H A Djquery.cookie.js64 var days = options.expires, t = options.expires = new Date();
65 t.setDate(t.getDate() + days);
/openbmc/linux/drivers/input/misc/
H A Dhp_sdc_rtc.c186 unsigned int days; in hp_sdc_rtc_read_rt() local
192 days = (unsigned int)(raw >> 24) & 0xffff; in hp_sdc_rtc_read_rt()
195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
/openbmc/docs/tof/
H A Dcontract.md76 Once an issue has a proposal, TOF members have 8 days to vote on the proposal in
77 one of three ways: for, against, or “needs discussion”. After 8 days, if the
82 not stagnate, if the initial 8 days elapses and the minimum number of votes has
83 not been met, the proposal is extended by an additional 6 days and then put onto
/openbmc/linux/fs/smb/client/
H A Dnetmisc.c971 time64_t sec, days; in cnvrtDosUnixTm() local
996 days = day + total_days_of_prev_months[month]; in cnvrtDosUnixTm()
997 days += 3652; /* account for difference in days between 1980 and 1970 */ in cnvrtDosUnixTm()
999 days += year * 365; in cnvrtDosUnixTm()
1000 days += (year/4); /* leap year */ in cnvrtDosUnixTm()
1008 days = days - 1; /* do not count leap year for the year 2100 */ in cnvrtDosUnixTm()
1012 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
1013 sec += 24 * 60 * 60 * days; in cnvrtDosUnixTm()
/openbmc/bmcweb/redfish-core/include/utils/extern/
H A Ddate.h191 using days = std::chrono::duration variable
195 <int, detail::ratio_multiply<std::ratio<7>, days::period>>;
198 <int, detail::ratio_multiply<std::ratio<146097, 400>, days::period>>;
208 using sys_days = sys_time<days>;
217 using local_days = local_time<days>;
347 CONSTCD14 day& operator+=(const days& d) NOEXCEPT;
348 CONSTCD14 day& operator-=(const days& d) NOEXCEPT;
361 CONSTCD11 day operator+(const day& x, const days& y) NOEXCEPT;
362 CONSTCD11 day operator+(const days& x, const day& y) NOEXCEPT;
363 CONSTCD11 day operator-(const day& x, const days& y) NOEXCEPT;
[all …]

12345678910