Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 1053) sorted by relevance

12345678910>>...43

/openbmc/qemu/tests/qtest/
H A Dm48t59-test.c134 date->tm_sec = sec; in cmos_get_date_time()
135 date->tm_min = min; in cmos_get_date_time()
136 date->tm_hour = hour; in cmos_get_date_time()
137 date->tm_mday = mday; in cmos_get_date_time()
141 date->tm_gmtoff = 0; in cmos_get_date_time()
144 ts = mktime(date); in cmos_get_date_time()
184 if (tm_cmp(&date[0], &date[1]) == 0) { in bcd_check_time()
185 datep = &date[0]; in bcd_check_time()
186 } else if (tm_cmp(&date[1], &date[2]) == 0) { in bcd_check_time()
187 datep = &date[1]; in bcd_check_time()
[all …]
H A Drtc-test.c108 date->tm_sec = sec; in cmos_get_date_time()
109 date->tm_min = min; in cmos_get_date_time()
110 date->tm_hour = hour; in cmos_get_date_time()
111 date->tm_mday = mday; in cmos_get_date_time()
115 date->tm_gmtoff = 0; in cmos_get_date_time()
118 ts = mktime(date); in cmos_get_date_time()
151 if (tm_cmp(&date[0], &date[1]) == 0) { in check_time()
152 datep = &date[0]; in check_time()
153 } else if (tm_cmp(&date[1], &date[2]) == 0) { in check_time()
154 datep = &date[1]; in check_time()
[all …]
/openbmc/u-boot/drivers/rtc/
H A Ds35392a.c195 u8 date[7]; in s35392a_rtc_get() local
203 ret = s35392a_rtc_read(dev, S35390A_CMD_TIME1, date, sizeof(date)); in s35392a_rtc_get()
211 date[i] = bitrev8(date[i]); in s35392a_rtc_get()
213 tm->tm_sec = bcd2bin(date[S35390A_BYTE_SECS]); in s35392a_rtc_get()
214 tm->tm_min = bcd2bin(date[S35390A_BYTE_MINS]); in s35392a_rtc_get()
216 tm->tm_wday = bcd2bin(date[S35390A_BYTE_WDAY]); in s35392a_rtc_get()
217 tm->tm_mday = bcd2bin(date[S35390A_BYTE_DAY]); in s35392a_rtc_get()
233 u8 date[7]; in s35392a_rtc_set() local
255 date[S35390A_BYTE_MONTH] = bin2bcd(tm->tm_mon); in s35392a_rtc_set()
264 date[i] = bitrev8(date[i]); in s35392a_rtc_set()
[all …]
H A Dmvrtc.c24 u32 date; in __mv_rtc_get() local
30 date = readl(&regs->date); in __mv_rtc_get()
46 t->tm_mday = bcd2bin((date >> MVRTC_DATE_SFT) & MVRTC_DATE_MSK); in __mv_rtc_get()
47 t->tm_mon = bcd2bin((date >> MVRTC_MON_SFT) & MVRTC_MON_MSK); in __mv_rtc_get()
48 t->tm_year = bcd2bin((date >> MVRTC_YEAR_SFT) & MVRTC_YEAR_MSK); in __mv_rtc_get()
71 u32 date = 0; in __mv_rtc_set() local
84 date |= (bin2bcd(t->tm_mday) & MVRTC_DATE_MSK) << MVRTC_DATE_SFT; in __mv_rtc_set()
85 date |= (bin2bcd(t->tm_mon) & MVRTC_MON_MSK) << MVRTC_MON_SFT; in __mv_rtc_set()
86 date |= (bin2bcd(t->tm_year % 100) & MVRTC_YEAR_MSK) << MVRTC_YEAR_SFT; in __mv_rtc_set()
92 writel(date, &regs->date); in __mv_rtc_set()
H A Drx8010sj.c207 u8 date[7]; in rx8010sj_rtc_get() local
228 date[i] = ret; in rx8010sj_rtc_get()
231 tmp->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010sj_rtc_get()
251 u8 date[7]; in rx8010sj_rtc_set() local
267 date[RX8010_SEC - RX8010_SEC] = bin2bcd(tm->tm_sec); in rx8010sj_rtc_set()
268 date[RX8010_MIN - RX8010_SEC] = bin2bcd(tm->tm_min); in rx8010sj_rtc_set()
269 date[RX8010_HOUR - RX8010_SEC] = bin2bcd(tm->tm_hour); in rx8010sj_rtc_set()
270 date[RX8010_MDAY - RX8010_SEC] = bin2bcd(tm->tm_mday); in rx8010sj_rtc_set()
271 date[RX8010_MONTH - RX8010_SEC] = bin2bcd(tm->tm_mon); in rx8010sj_rtc_set()
273 date[RX8010_WDAY - RX8010_SEC] = bin2bcd(tm->tm_wday); in rx8010sj_rtc_set()
[all …]
/openbmc/linux/fs/fat/
H A Dfat_test.c27 __le16 date; member
37 .date = cpu_to_le16(33),
45 .date = cpu_to_le16(65439),
53 .date = cpu_to_le16(33),
61 .date = cpu_to_le16(65439),
69 .date = cpu_to_le16(8285),
117 .date = cpu_to_le16(33),
143 testcase->date, in fat_time_fat2unix_test()
158 __le16 date, time; in fat_time_unix2fat_test() local
167 &time, &date, &cs); in fat_time_unix2fat_test()
[all …]
/openbmc/phosphor-webui/app/configuration/controllers/
H A Ddate-time-controller.js32 $scope.bmc.date =
35 $scope.bmc.date.setMilliseconds(0);
41 createOffset($scope.bmc.date);
45 $scope.host.date =
47 $scope.host.date.setMilliseconds(0);
49 createOffset($scope.bmc.date);
196 function createOffset(date) { argument
198 var sign = (date.getTimezoneOffset() > 0) ? '-' : '+';
199 var offset = Math.abs(date.getTimezoneOffset());
204 function getUserTimezone(date) { argument
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-rx4581.c97 unsigned char date[7]; in rx4581_get_datetime() local
125 date[0] = 0x80; in rx4581_get_datetime()
126 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime()
148 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx4581_get_datetime()
150 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
151 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime()
152 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime()
153 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime()
154 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime()
155 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime()
[all …]
H A Drtc-rx8581.c72 unsigned char date[7]; in rx8581_rtc_read_time() local
102 err = regmap_bulk_read(rx8581->regmap, RX8581_REG_SC, date, in rx8581_rtc_read_time()
103 sizeof(date)); in rx8581_rtc_read_time()
116 date[0], date[1], date[2], date[3], date[4], date[5], date[6]); in rx8581_rtc_read_time()
118 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
119 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time()
120 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time()
121 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time()
122 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
123 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time()
[all …]
H A Drtc-rx8010.c110 u8 date[RX8010_YEAR - RX8010_SEC + 1]; in rx8010_get_time() local
122 err = regmap_bulk_read(rx8010->regs, RX8010_SEC, date, sizeof(date)); in rx8010_get_time()
126 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time()
132 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time()
140 u8 date[RX8010_YEAR - RX8010_SEC + 1]; in rx8010_set_time() local
148 date[RX8010_SEC - RX8010_SEC] = bin2bcd(dt->tm_sec); in rx8010_set_time()
149 date[RX8010_MIN - RX8010_SEC] = bin2bcd(dt->tm_min); in rx8010_set_time()
150 date[RX8010_HOUR - RX8010_SEC] = bin2bcd(dt->tm_hour); in rx8010_set_time()
151 date[RX8010_MDAY - RX8010_SEC] = bin2bcd(dt->tm_mday); in rx8010_set_time()
152 date[RX8010_MONTH - RX8010_SEC] = bin2bcd(dt->tm_mon + 1); in rx8010_set_time()
[all …]
H A Drtc-rx8025.c218 u8 date[7]; in rx8025_get_time() local
229 dev_dbg(dev, "%s: read %7ph\n", __func__, date); in rx8025_get_time()
237 + (date[RX8025_REG_HOUR] & 0x20 ? 12 : 0); in rx8025_get_time()
252 u8 date[7]; in rx8025_set_time() local
259 date[RX8025_REG_SEC] = bin2bcd(dt->tm_sec); in rx8025_set_time()
260 date[RX8025_REG_MIN] = bin2bcd(dt->tm_min); in rx8025_set_time()
262 date[RX8025_REG_HOUR] = bin2bcd(dt->tm_hour); in rx8025_set_time()
267 date[RX8025_REG_WDAY] = bin2bcd(dt->tm_wday); in rx8025_set_time()
268 date[RX8025_REG_MDAY] = bin2bcd(dt->tm_mday); in rx8025_set_time()
269 date[RX8025_REG_MONTH] = bin2bcd(dt->tm_mon + 1); in rx8025_set_time()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/ruby/ruby/
H A D0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch6 Without an explicit date, they will get the current date and make the
20 "invalid date format in specification: #{date.inspect}")
24 + Time.utc(date.utc.year, date.utc.month, date.utc.day)
26 Time.utc(date.year, date.month, date.day)
/openbmc/openbmc-test-automation/pldm/
H A Dtest_pldm_bios.robot21 [Documentation] Verify host date & time.
62 # Set date.
145 [Documentation] Runs the date command from BMC and returns current date and time.
148 ${date} ${stderr} ${rc}= BMC Execute Command date
151 # join to form %d %b %H:%M:%S %Y date format
152 ${date}= Split String ${date}
153 Remove From List ${date} 0
154 Remove From List ${date} -2
155 ${date}= Evaluate " ".join(${date})
158 ${date}= Convert Date ${date} date_format=%b %d %H:%M:%S %Y
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/mc/files/
H A Dnomandate.patch4 Subject: [PATCH] mc: Fix manpage date indeterminism
9 The man page date can vary depending upon the host perl, e.g. in Russian
11 Rather than depend upon perl-native to fix this, just remove the date from
19 doc/man/date-of-man-include.am | 2 +-
22 diff --git a/doc/man/date-of-man-include.am b/doc/man/date-of-man-include.am
24 --- a/doc/man/date-of-man-include.am
25 +++ b/doc/man/date-of-man-include.am
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dls.c29 char *date; in nvfw_ls_desc_head() local
39 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_head()
40 nvkm_debug(subdev, "\tdate : %s\n", date); in nvfw_ls_desc_head()
41 kfree(date); in nvfw_ls_desc_head()
114 char *date; in nvfw_ls_desc_v2() local
123 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_v2()
124 nvkm_debug(subdev, "\tdate : %s\n", date); in nvfw_ls_desc_v2()
125 kfree(date); in nvfw_ls_desc_v2()
/openbmc/webui-vue/src/components/Global/
H A DTableDateFilter.vue6 label-for="input-from-date"
11 id="input-from-date"
39 aria-controls="input-from-date"
52 label-for="input-to-date"
57 id="input-to-date"
85 aria-controls="input-to-date"
125 const date = new Date(value);
127 if (date.getTime() > maxDate.getTime()) return false;
135 const date = new Date(value);
148 // Offset the end date to end of day to make sure all
[all …]
/openbmc/bmcweb/redfish-core/src/utils/
H A Dtime_utils.cpp20 std::chrono::sys_time<usSinceEpoch> date; in dateStringToEpoch() local
25 namespace chrono_from_stream = date; in dateStringToEpoch()
27 if (chrono_from_stream::from_stream(iss, format, date)) in dateStringToEpoch()
29 if (date.time_since_epoch().count() < 0) in dateStringToEpoch()
38 return date.time_since_epoch(); in dateStringToEpoch()
/openbmc/phosphor-webui/app/configuration/styles/
H A Ddate-time.scss8 .date-time__metadata-wrapper {
12 .date-time__owner-dropdown {
18 .date-time__ntp-servers{
22 .date-time__ntp-servers-wrap{
27 .date-time__metadata-block {
48 /*button*/.date-time__dns-remove {
/openbmc/u-boot/tools/
H A Dmicrocode-tool54 date = ''
71 date = m_date.group(1)
76 return date, license_text, microcodes
90 date = ''
118 return date, license_text, microcodes
121 def List(date, microcodes, model): argument
129 print 'Date: %s' % date
174 def CreateFile(date, license_text, mcodes, outfile): argument
228 args = [text, date]
285 date, license_text, microcodes = ParseFile(options.mcfile)
[all …]
H A Dmicrocode-tool.py54 date = ''
71 date = m_date.group(1)
76 return date, license_text, microcodes
90 date = ''
118 return date, license_text, microcodes
121 def List(date, microcodes, model): argument
129 print 'Date: %s' % date
174 def CreateFile(date, license_text, mcodes, outfile): argument
228 args = [text, date]
285 date, license_text, microcodes = ParseFile(options.mcfile)
[all …]
/openbmc/linux/arch/sh/boards/mach-sdk7786/
H A Dfpga.c54 u16 version, date; in sdk7786_fpga_init() local
63 date = fpga_read_reg(FPGADR); in sdk7786_fpga_init()
67 ((date >> 12) & 0xf) + 2000, in sdk7786_fpga_init()
68 (date >> 8) & 0xf, bcd2bin(date & 0xff)); in sdk7786_fpga_init()
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dcvs.py40 ud.date = ud.parm['date']
42 ud.date = ""
52 …_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpat…
59 if (ud.date == "now"):
94 if ud.date:
96 if len(ud.date) == 12:
97 … options.append("-D \"%s %s:%s UTC\"" % (ud.date[0:8], ud.date[8:10], ud.date[10:12]))
99 options.append("-D \"%s UTC\"" % ud.date)
/openbmc/webui-vue/src/views/Overview/
H A DOverviewDumps.vue43 // Create export file name based on date
44 let date = new Date();
45 date =
46 date.toISOString().slice(0, 10) +
48 date.toString().split(':').join('-').split(' ')[4];
50 return fileName + date;
/openbmc/openbmc-test-automation/gui/gui_test/settings_menu/
H A Dtest_date_and_time_sub_menu.robot30 [Documentation] Verify navigation to date and time page.
41 Page Should Contain To change how date and time are displayed
91 [Documentation] Get date and time from Redfish and verify it via GUI date and time page.
98 # Get date and time from Redfish.
103 # Verify date and time via GUI date and time page.
111 ... on profile setting button in date and time page.
217 # Set the manual date and time.
225 Input Text ${xpath_manual_date} ${date}
231 Wait Until Page Contains ${date} timeout=60s
287 Input Text ${xpath_manual_date} ${date}
[all …]
/openbmc/webui-vue/src/views/Settings/DateTime/
H A DDateTime.vue37 label="Configure date and time"
52 label-for="input-manual-date"
57 id="input-manual-date"
58 v-model="form.manual.date"
235 date: '',
247 date: {
343 let date;
349 date = this.getUtcDate(this.form.manual.date, this.form.manual.time);
352 date = new Date(`${this.form.manual.date} ${this.form.manual.time}`);
399 getUtcDate(date, time) {
[all …]

12345678910>>...43