Lines Matching full:date
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.
72 ${sel_date}= Get Specific Sel Date 5
75 ${sel_date_raw}= Converting Date to HexaDecimal ${sel_date}
87 ${sel_date}= Get Specific Sel Date 5
90 ${sel_date_raw}= Converting Date to HexaDecimal ${sel_date}
96 ${get_sel_time}= Check Current Date Time Via IPMI
105 ${bmc_time}= Get Current Date from BMC
111 Verify Set SEL Time With Future Date And Time
122 ${get_sel_time}= Check Current Date Time Via IPMI
128 # Difference of time between BMC Date and Get SEL Time.
129 ${bmc_time}= Get Current Date from BMC
134 Verify Set SEL Time With Past Date And Time
142 ... msg=Date cannot be less than 1970.
148 ${get_sel_time}= Check Current Date Time Via IPMI
152 # Difference of time between BMC Date and Get SEL Time.
153 ${bmc_time}= Get Current Date from BMC
157 FAIL SEL Time cannot set Date less than 1970
165 # Gets BMC current date via date command.
166 ${current_date}= Get Current Date from BMC
169 ${sel_date_raw}= Converting Date to HexaDecimal ${current_date}
181 # Gets BMC current date via date command.
182 ${current_date}= Get Current Date from BMC
185 ${sel_date_raw}= Converting Date to HexaDecimal ${current_date}
206 ${sel_date}= Get Specific Sel Date 5
209 ${sel_date_raw}= Converting Date to HexaDecimal ${sel_date}
215 ${get_sel_time}= Check Current Date Time Via IPMI
224 ${bmc_time}= Get Current Date from BMC
246 # Fetches the date of the last added SEL Entry.
247 ${sel_entry_date}= Fetch Added SEL Date ${resp}
251 # Compare date and time of Set SEL with sel entry.
256 Verify SEL Time In SEL Entry For Future Date and Time
257 [Documentation] Verify configured SEL Time (Future Date & Time) in added SEL Entry.
269 ${get_sel_time}= Check Current Date Time Via IPMI
275 # Difference of time between BMC Date and Get SEL Time.
276 ${bmc_time}= Get Current Date from BMC
297 # Fetches the date of the last added SEL Entry.
298 ${sel_entry_date}= Fetch Added SEL Date ${resp}
302 # Compare date and time of Set SEL with sel entry.
307 Verify SEL Time In SEL Entry For Past Date And Time
308 [Documentation] Verify configured SEL Time (Past Date & Time) in added SEL Entry.
317 ... msg=Date cannot be less than 1970
323 ${get_sel_time}= Check Current Date Time Via IPMI
327 # Difference of time between BMC Date and Get SEL Time.
328 ${bmc_time}= Get Current Date from BMC
348 # Fetches the date of the last added SEL Entry.
349 ${sel_entry_date}= Fetch Added SEL Date ${resp}
353 # Compare date and time of Set SEL with sel entry.
357 FAIL SEL Time cannot set Date less than 1970.
392 # Fetches the date of the last added SEL Entry.
393 ${sel_entry_date}= Fetch Added SEL Date ${resp}
397 # Compare date and time of Set SEL with sel entry.
441 # example: If current date and time is "Wed May 4 18:55:00 UTC 2022",
456 # If date is 1st January 2022 12:30:00 PM,
490 Check Current Date Time Via IPMI
491 [Documentation] Verify Current Date and Time Via IPMI user command.
497 Get Specific Sel Date
498 [Documentation] Gets initial time and adds year to the current date and returns future date.
504 ${current_date}= Get Current Date from BMC
506 # Converting given years to days by multiplying with 365days and adding the days to current date.
508 ${date}= Add Time To Date
511 RETURN ${date}
514 Converting Date to HexaDecimal
515 [Documentation] Converting the date into hexa decimal values.
516 [Arguments] ${date}
519 # ${date} Can be any date in format %m/%d/%Y %H:%M:%S.
521 ${epoch_date}= Convert Date ${date} epoch exclude_millis=yes date_format=%m/%d/%Y %H:%M:%S
522 ${date}= Convert To Hex ${epoch_date} lowercase=yes
525 # Length of the date byte should be 8 so that each bytes are separated.
526 ${date}= Zfill Data ${date} 8
528 ${date}= Split String With Index ${date} 2
530 ${date}= Prefix Bytes ${date}
533 Reverse List ${date}
534 ${date}= Evaluate " ".join(${date})
536 RETURN ${date}
540 [Documentation] Converting the date into hexa decimal values.
544 # ${date1} Can be any date in format %m/%d/%Y %H:%M:%S.
545 # ${date2} Can be any date in format %m/%d/%Y %H:%M:%S.
547 ${epoch_date1}= Convert Date ${date1} epoch exclude_millis=yes date_format=%m/%d/%Y %H:%M:%S
548 ${epoch_date2}= Convert Date ${date2} epoch exclude_millis=yes date_format=%m/%d/%Y %H:%M:%S
562 # Gets BMC current date via date command.
563 ${current_date}= Get Current Date from BMC
572 ... Add Time To Date
575 ... Subtract Time From Date
579 ${quoted_date}= Fetch Date ${datetime}
585 [Documentation] Set SEL Time for given date using IPMI.
589 # ${date_time} Can be any date in format %m/%d/%Y %H:%M:%S.