6 lines
138 B
Nim
6 lines
138 B
Nim
import times
|
|
|
|
proc format*(ti: TimeInterval, fmt: string): string =
|
|
let info = getGMTime(fromSeconds(0) + ti)
|
|
return info.format(fmt)
|