| /openbmc/qemu/tests/qtest/ |
| H A D | m48t59-test.c | 110 static void cmos_get_date_time(QTestState *s, struct tm *date) in cmos_get_date_time() argument 133 date->tm_isdst = dummy.tm_isdst; in cmos_get_date_time() 134 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() 138 date->tm_mon = mon - 1; in cmos_get_date_time() 139 date->tm_year = base_year + year - 1900; in cmos_get_date_time() 141 date->tm_gmtoff = 0; in cmos_get_date_time() 144 ts = mktime(date); in cmos_get_date_time() [all …]
|
| H A D | rtc-test.c | 71 static void cmos_get_date_time(struct tm *date) in cmos_get_date_time() argument 107 date->tm_isdst = dummy.tm_isdst; in cmos_get_date_time() 108 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() 112 date->tm_mon = mon - 1; in cmos_get_date_time() 113 date->tm_year = base_year + year - 1900; in cmos_get_date_time() 115 date->tm_gmtoff = 0; in cmos_get_date_time() 118 ts = mktime(date); in cmos_get_date_time() [all …]
|
| /openbmc/u-boot/drivers/rtc/ |
| H A D | s35392a.c | 195 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() 215 tm->tm_hour = bcd2bin(date[S35390A_BYTE_HOURS] & ~S35390A_FLAG_24H); 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() 218 tm->tm_mon = bcd2bin(date[S35390A_BYTE_MONTH]); in s35392a_rtc_get() 219 tm->tm_year = bcd2bin(date[S35390A_BYTE_YEAR]) + 2000; in s35392a_rtc_get() [all …]
|
| H A D | mvrtc.c | 24 u32 date; in __mv_rtc_get() local 30 date = readl(®s->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, ®s->date); in __mv_rtc_set()
|
| H A D | rx8010sj.c | 207 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() 232 tmp->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010sj_rtc_get() 233 tmp->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010sj_rtc_get() 234 tmp->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010sj_rtc_get() 235 tmp->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f); in rx8010sj_rtc_get() 236 tmp->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 2000; 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() [all …]
|
| /openbmc/openbmc/poky/meta/recipes-devtools/ruby/ruby/ |
| H A D | 0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch | 6 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/phosphor-webui/app/configuration/controllers/ |
| H A D | date-time-controller.js | 32 $scope.bmc.date = 35 $scope.bmc.date.setMilliseconds(0); 40 $scope.bmc.timezone = getUserTimezone($scope.bmc.date) + ' ' + 41 createOffset($scope.bmc.date); 45 $scope.host.date = 47 $scope.host.date.setMilliseconds(0); 48 $scope.host.timezone = getUserTimezone($scope.bmc.date) + ' ' + 49 createOffset($scope.bmc.date); 124 manualPromises.push(setBMCTime($scope.bmc.date.getTime() * 1000)); 130 manualPromises.push(setHostTime($scope.bmc.date.getTime() * 1000)); [all …]
|
| /openbmc/openbmc-test-automation/pldm/ |
| H A D | test_pldm_bios.robot | 21 [Documentation] Verify host date & time. 39 # verify date matching pldmtool vs BMC current time. 44 [Documentation] Verify set date & time for the host. 56 ${date}= Add Time To Date ${current_date_time} 400 days exclude_millis=True 57 ${upgrade_date}= Evaluate re.sub(r'-* *:*', "", '${date}') modules=re 62 # Set date. 138 [Documentation] Set date time to manual mode via Redfish. 146 [Documentation] Runs the date command from BMC and returns current date and time. 149 ${date} ${stderr} ${rc}= BMC Execute Command date 152 # join to form %d %b %H:%M:%S %Y date format [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun/ |
| H A D | 1777174bb97c0b514033a09b820078b0d117f4a8.patch | 20 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) 21 - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today()) 26 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) 27 - self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today()) #… 30 @freeze_time(lambda: datetime.date(year=2013, month=4, day=9), as_kwarg='frozen_time') 32 self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today()) 33 - self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())
|
| /openbmc/openbmc/poky/meta/recipes-extended/mc/files/ |
| H A D | nomandate.patch | 4 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/webui-vue/src/components/Global/ |
| H A D | TableDateFilter.vue | 6 label-for="input-from-date" 11 id="input-from-date" 13 type="date" 25 date: toDate, 34 label-for="input-to-date" 39 id="input-to-date" 41 type="date" 53 date: fromDate, 95 const date = new Date(value); 97 if (date.getTime() > maxDate.getTime()) return false; [all …]
|
| /openbmc/phosphor-webui/app/configuration/styles/ |
| H A D | date-time.scss | 8 .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 D | microcode-tool.py | 54 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] 283 date, license_text, microcodes = ParseHeaderFiles(options.headerfile) [all …]
|
| H A D | microcode-tool | 54 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] 283 date, license_text, microcodes = ParseHeaderFiles(options.headerfile) [all …]
|
| /openbmc/webui-vue/src/views/Overview/ |
| H A D | OverviewDumps.vue | 49 // Create export file name based on date 50 let date = new Date(); 51 date = 52 date.toISOString().slice(0, 10) + 54 date.toString().split(':').join('-').split(' ')[4]; 56 return fileName + date;
|
| H A D | OverviewEvents.vue | 80 // Create export file name based on date 81 let date = new Date(); 82 date = 83 date.toISOString().slice(0, 10) + 85 date.toString().split(':').join('-').split(' ')[4]; 87 return fileName + date;
|
| /openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
| H A D | cvs.py | 40 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/openbmc-test-automation/gui/gui_test/settings_menu/ |
| H A D | test_date_and_time_sub_menu.robot | 30 [Documentation] Verify navigation to date and time page. 37 [Documentation] Verify the presence of the required text on the date and time page. 41 Page Should Contain To change how date and time are displayed 49 [Documentation] Verify existence of all sections in date and time page. 56 [Documentation] Verify existence of all buttons in date and time settings page. 65 [Documentation] Verify existence of all input boxes in date time page. 79 [Documentation] Get date and time from configuration section and verify it via BMC CLI. 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. [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/ |
| H A D | 0001-Adhere-to-the-SOURCE_DATE_EPOCH-standard.patch | 6 Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set 25 -VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\"" 26 +VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
|
| /openbmc/openbmc/poky/scripts/ |
| H A D | patchtest-get-series | 78 START_TIME=$(date --date "now" +"%Y-%m-%dT%H:%M:%S") 81 SERIES_CHECK_LIMIT=$(date --date "now - ${INTERVAL_MINUTES} minutes" +"%Y-%m-%dT%H:%M:%S")
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/openocd/openocd/ |
| H A D | 0001-Makefile.am-Use-SOURCE_DATE_EPOCH-environment-variab.patch | 9 https://reproducible-builds.org/docs/source-date-epoch/ 31 -%C%_libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date +%F-%R`\" 33 + SOURCE_DATE_EPOCH="$${SOURCE_DATE_EPOCH:-$$(date +%s)}"; \ 34 + date -u -d "@$$SOURCE_DATE_EPOCH" "$$DATE_FMT" 2>/dev/null || \ 35 + date -u -r "$$SOURCE_DATE_EPOCH" "$$DATE_FMT" 2>/dev/null || date -u "$$DATE_FMT"`\"
|
| /openbmc/openbmc-test-automation/ipmi/ |
| H A D | test_ipmi_sel_time.robot | 11 ... BMC Native command (date). 21 ... Current SEL time identified via BMC Native command (date) and perform SEL Time operations. 24 ... Get current time from BMC and add future year and compare against BMC native command (date), 25 ... Gets BMC Current Time and Adds 15 minutes and compare against BMC native command (date), 26 ... Gets BMC Current Time and subtracts 1 day and compare against BMC native command (date), 27 ... Add SEL Entry for all the above scenarios and compare against BMC native command (date). 53 # test case. Need to give how many sel should be added with multiple date and time. 165 # Gets BMC current date via date command. 181 # Gets BMC current date vi [all...] |
| /openbmc/webui-vue/src/views/Settings/DateTime/ |
| H A D | DateTime.vue | 20 <dt>{{ $t('pageDateTime.form.date') }}</dt> 41 label="Configure date and time" 55 :label="$t('pageDateTime.form.date')" 56 label-for="input-manual-date" 58 <b-form-text id="date-format-help">YYYY-MM-DD</b-form-text> 61 id="input-manual-date" 62 v-model="form.manual.date" 63 :state="getValidationState(v$.form.manual.date)" 67 @blur="v$.form.manual.date.$touch()" 70 <div v-if="v$.form.manual.date.pattern.$invalid"> [all …]
|
| /openbmc/openpower-debug-collector/dump/tools/common/include/ |
| H A D | gendumpinfo | 32 START_TIME=$(date +%s) 35 start=$(date -d @"$START_TIME" +'%Y-%m-%d %H:%M:%S') 38 END_TIME=$(date +%s) 40 end=$(date -d @"$END_TIME" +'%Y-%m-%d %H:%M:%S')
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/yasm/yasm/ |
| H A D | 0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch | 4 Subject: [PATCH 1/2] yasm: Set build date to SOURCE_DATE_EPOCH 24 +# Use reproducible build date and time 27 + BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT") 28 + AC_DEFINE_UNQUOTED([BUILD_DATE], ["$BUILD_DATE"], [Use reproducidle build date])
|