fix documentation of $*(dt: DateTime) (#12660)
(cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa)
This commit is contained in:
parent
a14abc5708
commit
ffca3eefb5
1 changed files with 1 additions and 1 deletions
|
|
@ -2432,7 +2432,7 @@ proc parseTime*(input: string, f: static[string], zone: Timezone): Time
|
||||||
|
|
||||||
proc `$`*(dt: DateTime): string {.tags: [], raises: [], benign.} =
|
proc `$`*(dt: DateTime): string {.tags: [], raises: [], benign.} =
|
||||||
## Converts a `DateTime` object to a string representation.
|
## Converts a `DateTime` object to a string representation.
|
||||||
## It uses the format ``yyyy-MM-dd'T'HH-mm-sszzz``.
|
## It uses the format ``yyyy-MM-dd'T'HH:mm:sszzz``.
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
let dt = initDateTime(01, mJan, 2000, 12, 00, 00, utc())
|
let dt = initDateTime(01, mJan, 2000, 12, 00, 00, utc())
|
||||||
doAssert $dt == "2000-01-01T12:00:00Z"
|
doAssert $dt == "2000-01-01T12:00:00Z"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue