Skip to content

Commit 4fdf174

Browse files
authored
Add strftime to step clock (#256)
1 parent 9b47c9f commit 4fdf174

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resonate/clocks/step.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import time
4+
35

46
class StepClock:
57
def __init__(self) -> None:
@@ -14,4 +16,4 @@ def time(self) -> float:
1416
return self._time
1517

1618
def strftime(self, format: str, /) -> str:
17-
raise NotImplementedError
19+
return time.strftime(format, time.gmtime(self._time))

0 commit comments

Comments
 (0)