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]
  • Loading branch information
Milan authored and narimiran committed Jan 22, 2020
1 parent fbd7fe1 commit 3e843ab
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 @@ -1327,7 +1327,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 3e843ab

Please sign in to comment.