mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
[minor] fix doc for $(Time) (#12795) [backport]
This commit is contained in:
committed by
Andreas Rumpf
parent
378289c6a8
commit
9e1fd9e46b
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user