[minor] fix doc for $(Time) (#12795) [backport]

This commit is contained in:
Timothee Cour
2019-12-03 00:12:08 -08:00
committed by Andreas Rumpf
parent 378289c6a8
commit 9e1fd9e46b

View File

@@ -2440,7 +2440,7 @@ proc `$`*(dt: DateTime): string {.tags: [], raises: [], benign.} =
proc `$`*(time: Time): string {.tags: [], raises: [], benign.} =
## Converts a `Time` value to a string representation. It will use the local
## time zone and use the format ``yyyy-MM-dd'T'HH-mm-sszzz``.
## time zone and use the format ``yyyy-MM-dd'T'HH:mm:sszzz``.
runnableExamples:
let dt = initDateTime(01, mJan, 1970, 00, 00, 00, local())
let tm = dt.toTime()