nim-codex/codex/systemclock.nim
Adam Uhlíř e5df8c50d3
style: nph formatting (#1067)
* style: nph setup

* chore: formates codex/ and tests/ folder with nph 0.6.1
2025-01-21 20:54:46 +00:00

10 lines
215 B
Nim

import std/times
import pkg/upraises
import ./clock
type SystemClock* = ref object of Clock
method now*(clock: SystemClock): SecondsSince1970 {.upraises: [].} =
let now = times.now().utc
now.toTime().toUnix()