redfish date time base keywords

Resolves openbmc/openbmc-test-automation#1751

Change-Id: I129b1fb35e16315aa198c4577496fe06f8f7a56f
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index afaf56e..6e5ef14 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -698,3 +698,10 @@
     [Documentation]  Verify that the BMC chassis state is off.
     ${state}=  Get Power State
     Should be equal  ${state}  ${0}
+
+
+CLI Get BMC DateTime
+    [Documentation]  Returns BMC date time from date command.
+
+    ${bmc_time_via_date}  ${stderr}  ${rc}=  BMC Execute Command  date +"%Y-%m-%d %H:%M:%S"  print_err=1
+    [Return]  ${bmc_time_via_date}