Skip to content

Commit

Permalink
[backport] times/getClockStr(): fix mistake in doc (nim-lang#13229) […
Browse files Browse the repository at this point in the history
…ci skip]

(cherry picked from commit 3e843ab)
  • Loading branch information
Milan authored and narimiran committed Jan 23, 2020
1 parent 16eaebb commit 0ff510c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/times.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ proc getDateStr*(dt = now()): string {.rtl, extern: "nt$1", tags: [TimeEffect].}
'-' & intToStr(dt.monthday, 2)

proc getClockStr*(dt = now()): string {.rtl, extern: "nt$1", tags: [TimeEffect].} =
## Gets the current local clock time as a string of the format ``HH:MM:SS``.
## Gets the current local clock time as a string of the format ``HH:mm:ss``.
runnableExamples:
echo getClockStr(now() - 1.hours)
result = intToStr(dt.hour, 2) & ':' & intToStr(dt.minute, 2) &
Expand Down

0 comments on commit 0ff510c

Please sign in to comment.