File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ def simvue_timestamp(
4343
4444 Parameters
4545 ----------
46- date_time: datetime.datetime, optional
47- if provided, the datetime object to convert, else use current date and time
46+ date_time: datetime.datetime | str, optional
47+ if provided, the datetime object to convert,
48+ else use current date and time
49+ if a string assume to be local time.
4850
4951 Returns
5052 -------
Original file line number Diff line number Diff line change @@ -1270,8 +1270,9 @@ def log_event(
12701270 ----------
12711271 message : str
12721272 event message to log
1273- timestamp : datetime, optional
1273+ timestamp : datetime.datetime | str , optional
12741274 manually specify the time stamp for this log, by default None
1275+ if a string is provided, local time
12751276
12761277 Returns
12771278 -------
@@ -1494,8 +1495,9 @@ def log_metrics(
14941495 manually specify the step index for this log, by default None
14951496 time : int, optional
14961497 manually specify the time for this log, by default None
1497- timestamp : str, optional
1498- manually specify the timestamp for this log, by default None
1498+ timestamp : datetime.datetime | str, optional
1499+ manually specify the time stamp for this log, by default None
1500+ if a string is provided, local time
14991501
15001502 Returns
15011503 -------
You can’t perform that action at this time.
0 commit comments