diff options
author | lit <litlighilit@foxmail.com> | 2024-07-18 19:59:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 13:59:48 +0200 |
commit | 6aa54d533b3ee10ed5156b0f67f5418bc4b6d99d (patch) | |
tree | 2cf31fd789304ad18d04bf357f62c62b87377e35 /lib | |
parent | f765898a7518f5c6bbebffd4217ccc35fd02747d (diff) | |
download | Nim-6aa54d533b3ee10ed5156b0f67f5418bc4b6d99d.tar.gz |
doc: times.nim: DD -> dd (#23857)
`YYYY-MM-dd` was mistaken as `YYYY-MM-DD`.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/times.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim index a8e24313f..1a3dc7512 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -1498,11 +1498,11 @@ proc `-=`*(a: var DateTime, b: Duration) = a = a - b proc getDateStr*(dt = now()): string {.rtl, extern: "nt$1", tags: [TimeEffect].} = - ## Gets the current local date as a string of the format `YYYY-MM-DD`. + ## Gets the current local date as a string of the format `YYYY-MM-dd`. runnableExamples: echo getDateStr(now() - 1.months) assertDateTimeInitialized dt - result = newStringOfCap(10) # len("YYYY-MM-DD") == 10 + result = newStringOfCap(10) # len("YYYY-MM-dd") == 10 result.addInt dt.year result.add '-' result.add intToStr(dt.monthZero, 2) |