6 lines
148 B
Nim
6 lines
148 B
Nim
import times
|
|
|
|
proc fromNumericDate*(i: BiggestInt): DateTime = fromUnix(i).utc
|
|
|
|
proc toNumericDate*(d: DateTime): BiggestInt = toUnix(d.utc.toTime)
|