mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-14 21:20:42 +00:00
[backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]
This commit is contained in:
@@ -1327,7 +1327,7 @@ proc getDateStr*(dt = now()): string {.rtl, extern: "nt$1", tags: [TimeEffect].}
|
|||||||
'-' & intToStr(dt.monthday, 2)
|
'-' & intToStr(dt.monthday, 2)
|
||||||
|
|
||||||
proc getClockStr*(dt = now()): string {.rtl, extern: "nt$1", tags: [TimeEffect].} =
|
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:
|
runnableExamples:
|
||||||
echo getClockStr(now() - 1.hours)
|
echo getClockStr(now() - 1.hours)
|
||||||
result = intToStr(dt.hour, 2) & ':' & intToStr(dt.minute, 2) &
|
result = intToStr(dt.hour, 2) & ':' & intToStr(dt.minute, 2) &
|
||||||
|
|||||||
Reference in New Issue
Block a user