nim-time-utils/timeutils.nim
2016-10-07 21:55:33 -05:00

6 lines
138 B
Nim

import times
proc format*(ti: TimeInterval, fmt: string): string =
let info = getGMTime(fromSeconds(0) + ti)
return info.format(fmt)