Skip to content

Commit 48bef67

Browse files
committed
📝 Add additional information regarding datetime to docstrings
1 parent 267a96f commit 48bef67

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

simvue/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
-------

simvue/run.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
-------

0 commit comments

Comments
 (0)