Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 171) sorted by relevance

1234567

/openbmc/linux/kernel/time/
H A Dtime_test.c17 static int last_day_of_month(long year, int month) in last_day_of_month() argument
19 if (month == 2) in last_day_of_month()
21 if (month == 4 || month == 6 || month == 9 || month == 11) in last_day_of_month()
29 static void advance_date(long *year, int *month, int *mday, int *yday) in advance_date() argument
31 if (*mday != last_day_of_month(*year, *month)) { in advance_date()
38 if (*month != 12) { in advance_date()
39 ++*month; in advance_date()
44 *month = 1; in advance_date()
62 int month = 1; in time64_to_tm_test_date_range() local
77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
[all …]
H A Dtimeconv.c49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local
120 month = u32tmp >> 16; in time64_to_tm()
131 month = is_Jan_or_Feb ? month - 12 : month; in time64_to_tm()
137 result->tm_mon = (int) month; in time64_to_tm()
/openbmc/u-boot/drivers/rtc/
H A Drtc-lib.c26 static int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
28 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
40 unsigned int month, year, secs; in rtc_to_tm() local
59 for (month = 0; month < 11; month++) { in rtc_to_tm()
62 newdays = days - rtc_month_days(month, year); in rtc_to_tm()
67 tm->tm_mon = month + 1; /* January = 1 */ in rtc_to_tm()
H A Dm41t60.c88 uchar min, date, month, years; in rtc_validate() local
113 month = data[RTC_MONTH] & 0x3F; in rtc_validate()
119 0x12 < month || in rtc_validate()
121 daysInMonth[month] < date || 0x09 < (date & 0x0F) || 0x00 == date || in rtc_validate()
122 (0x29 == date && 0x02 == month && in rtc_validate()
H A Dm48t35ax.c26 uchar sec, min, hour, cent_day, date, month, year; in rtc_get() local
39 month = rtc_read (0x6); in rtc_get()
49 year, month, date, cent_day, in rtc_get()
56 tmp->tm_mon = bcd2bin (month & 0x1F); in rtc_get()
/openbmc/linux/drivers/rtc/
H A Dlib_test.c9 static void advance_date(int *year, int *month, int *mday, int *yday) in advance_date() argument
11 if (*mday != rtc_month_days(*month - 1, *year)) { in advance_date()
18 if (*month != 12) { in advance_date()
19 ++*month; in advance_date()
24 *month = 1; in advance_date()
43 int month = 1; in rtc_time64_to_tm_test_date_range() local
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
61 KUNIT_ASSERT_EQ_MSG(test, month - 1, result.tm_mon, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
65 advance_date(&year, &month, &mday, &yday); in rtc_time64_to_tm_test_date_range()
H A Dlib.c30 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()
59 day_of_year, month, day; in rtc_time64_to_tm() local
112 month = u32tmp >> 16; in rtc_time64_to_tm()
123 month = is_Jan_or_Feb ? month - 12 : month; in rtc_time64_to_tm()
131 tm->tm_mon = (int) month; in rtc_time64_to_tm()
H A Drtc-efi.c30 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
56 eft->month = wtime->tm_mon + 1; in convert_to_efi_time()
87 if (!eft->month || eft->month > 12) in convert_from_efi_time()
89 wtime->tm_mon = eft->month - 1; in convert_from_efi_time()
208 eft.year, eft.month, eft.day, in efi_procfs()
225 alm.year, alm.month, alm.day, in efi_procfs()
H A Drtc-wilco-ec.c54 u8 month; member
81 u8 month; member
111 tm->tm_mon = rtc.month - 1; in wilco_ec_rtc_read()
141 rtc.month = bin2bcd(tm->tm_mon + 1); in wilco_ec_rtc_write()
H A Drtc-mv.c71 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
82 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_time()
90 tm->tm_mon = bcd2bin(month) - 1; in mv_rtc_read_time()
102 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
113 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_alarm()
121 alm->time.tm_mon = bcd2bin(month) - 1; in mv_rtc_read_alarm()
H A Drtc-m48t35.c29 u8 month; member
39 u8 month; member
73 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
135 writeb(mon, &priv->reg->month); in m48t35_set_time()
/openbmc/bmcweb/redfish-core/include/utils/extern/
H A Ddate.h227 class month; variable
248 CONSTCD11 year_month operator/(const year& y, const month& m) NOEXCEPT;
251 CONSTCD11 month_day operator/(const day& d, const month& m) NOEXCEPT;
253 CONSTCD11 month_day operator/(const month& m, const day& d) NOEXCEPT;
254 CONSTCD11 month_day operator/(const month& m, int d) NOEXCEPT;
257 CONSTCD11 month_day_last operator/(const month& m, last_spec) NOEXCEPT;
259 CONSTCD11 month_day_last operator/(last_spec, const month& m) NOEXCEPT;
262 CONSTCD11 month_weekday operator/(const month& m, const weekday_indexed& wdi) NOEXCEPT;
264 CONSTCD11 month_weekday operator/(const weekday_indexed& wdi, const month& m) NOEXCEPT;
267 CONSTCD11 month_weekday_last operator/(const month& m, const weekday_last& wdl) NOEXCEPT;
[all …]
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_bios_test.cpp35 uint8_t month = 0; in TEST() local
38 epochToBCDTime(epochTime, seconds, minutes, hours, day, month, year); in TEST()
44 ASSERT_EQ(0x4, month); in TEST()
56 uint8_t month = 4; in TEST() local
60 timeSec = timeToEpoch(sec, min, hours, day, month, year); in TEST()
/openbmc/libpldm/src/
H A Dutils.c204 static int day_map(uint8_t month) in day_map() argument
206 switch (month) { in day_map()
237 uint8_t month, uint16_t year) in is_time_legal() argument
239 if (month < 1 || month > 12) { in is_time_legal()
242 int rday = day_map(month); in is_time_legal()
243 if (month == 2 && in is_time_legal()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dbcd_time.hpp18 uint8_t month; member
26 yearMSB(0), yearLSB(0), month(0), day(0), hour(0), minutes(0), in BCDTime()
30 BCDTime(uint8_t yearMSB, uint8_t yearLSB, uint8_t month, uint8_t day, in BCDTime()
33 yearMSB(yearMSB), yearLSB(yearLSB), month(month), day(day), hour(hour), in BCDTime()
H A Dbcd_time.cpp30 (month == right.month) && (day == right.day) && in operator ==()
52 bcd.month = toBCD(gmTime->tm_mon + 1); in getBCDTime()
79 utcTime.tm_mon = fromBCD(bcdTime.month) - 1; in getMillisecondsSinceEpoch()
98 s >> time.yearMSB >> time.yearLSB >> time.month >> time.day >> time.hour; in operator >>()
105 s << time.yearMSB << time.yearLSB << time.month << time.day << time.hour; in operator <<()
/openbmc/linux/Documentation/RCU/
H A DRTFP.txt246 ,month="January"
361 ,month="February"
372 ,month="June"
418 ,month="September"
459 ,month="December"
475 ,month="May"
494 ,month="August"
512 ,month="March"
529 ,month="March"
577 ,month="June"
[all …]
/openbmc/u-boot/board/compulab/common/
H A Deeprom.c286 static int validate_date(unsigned char day, unsigned char month, in validate_date() argument
291 switch (month) { in validate_date()
363 unsigned char month; in eeprom_field_update_date() local
364 for (month = 1; month <= 12; month++) in eeprom_field_update_date()
365 if (!strcmp(tok2, months[month - 1])) in eeprom_field_update_date()
374 if (validate_date(day, month - 1, year)) { in eeprom_field_update_date()
385 field->buf[1] = month; in eeprom_field_update_date()
/openbmc/libpldm/src/dsp/
H A Dbios.c27 uint8_t day, uint8_t month, uint16_t year, in encode_get_date_time_resp() argument
54 response->month = month; in encode_get_date_time_resp()
64 uint8_t *month, uint16_t *year) in decode_get_date_time_resp() argument
67 hours == NULL || day == NULL || month == NULL || year == NULL || in decode_get_date_time_resp()
88 *month = response->month; in decode_get_date_time_resp()
97 uint8_t month, uint16_t year, struct pldm_msg *msg, in encode_set_date_time_req() argument
107 if (!is_time_legal(seconds, minutes, hours, day, month, year)) { in encode_set_date_time_req()
128 request->month = dec2bcd8(month); in encode_set_date_time_req()
137 uint8_t *day, uint8_t *month, uint16_t *year) in decode_set_date_time_req() argument
140 hours == NULL || day == NULL || month == NULL || year == NULL) { in decode_set_date_time_req()
[all …]
/openbmc/pldm/libpldmresponder/
H A Dbios.cpp26 uint8_t& hours, uint8_t& day, uint8_t& month, in epochToBCDTime() argument
36 month = pldm::utils::decimalToBcd( in epochToBCDTime()
44 uint8_t day, uint8_t month, uint16_t year) in timeToEpoch() argument
49 stm.tm_mon = month - 1; in timeToEpoch()
117 uint8_t month = 0; in getDateTime() local
144 day, month, year); in getDateTime()
147 seconds, minutes, hours, day, month, in getDateTime()
163 uint8_t month = 0; in setDateTime() local
198 &minutes, &hours, &day, &month, &year); in setDateTime()
204 month, year); in setDateTime()
/openbmc/libpldm/tests/dsp/
H A Dbios.cpp30 uint8_t month = 11; in TEST() local
40 hours, day, month, year, response); in TEST()
59 &month, sizeof(month))); in TEST()
63 sizeof(day) + sizeof(month), in TEST()
77 uint8_t month = 7; in TEST() local
101 &month, sizeof(month)); in TEST()
103 sizeof(minutes) + sizeof(hours) + sizeof(day) + sizeof(month) + in TEST()
119 EXPECT_EQ(month, retMonth); in TEST()
212 uint8_t month = 11; in TEST() local
221 month, year, request, in TEST()
[all …]
/openbmc/linux/fs/isofs/
H A Dutil.c21 int year, month, day, hour, minute, second, tz; in iso_date() local
25 month = p[1]; in iso_date()
36 crtime = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
/openbmc/libpldm/include/libpldm/
H A Dbios.h114 uint8_t month; //!< Month in BCD format member
128 uint8_t month; //!< Month in BCD format member
241 uint8_t *month, uint16_t *year);
348 uint8_t day, uint8_t month, uint16_t year,
536 uint8_t month, uint16_t year, struct pldm_msg *msg,
553 uint8_t *day, uint8_t *month, uint16_t *year);
/openbmc/linux/drivers/mmc/core/
H A Dcard.h58 unsigned char month; member
105 .month = (_month), \
153 #define cid_rev(hwrev, fwrev, year, month) \ argument
157 ((u64) month))
163 card->cid.month)
/openbmc/openbmc-tools/tof-voters/libvoters/
H A Dtime.py12 [year, month, day] = [int(x) for x in date.split("-")]
21 year, month, day, hour, minute, second, tzinfo=timezone.utc

1234567