From 6aa54d533b3ee10ed5156b0f67f5418bc4b6d99d Mon Sep 17 00:00:00 2001 From: lit Date: Thu, 18 Jul 2024 19:59:48 +0800 Subject: [PATCH] doc: times.nim: DD -> dd (#23857) `YYYY-MM-dd` was mistaken as `YYYY-MM-DD`. --- lib/pure/times.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/times.nim b/lib/pure/times.nim index a8e24313ff..1a3dc7512f 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)