From a9308cbaf3c89496b5832ddd18404dc0debe66a2 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Tue, 28 Feb 2023 23:25:44 -0600 Subject: [PATCH] Add ISO8601 date format (yyyy-MM-dd) to parseIso8601 utility function. --- timeutils.nim | 1 + timeutils.nimble | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/timeutils.nim b/timeutils.nim index 8442a16..4af3d4e 100644 --- a/timeutils.nim +++ b/timeutils.nim @@ -2,6 +2,7 @@ import times const zeroTime = fromUnix(0) const ISO_8601_FORMATS = @[ + "yyyy-MM-dd", "yyyy-MM-dd'T'HH:mm:ssz", "yyyy-MM-dd'T'HH:mm:sszzz", "yyyy-MM-dd'T'HH:mm:ss'.'fffzzz", diff --git a/timeutils.nimble b/timeutils.nimble index de917e3..2360f92 100644 --- a/timeutils.nimble +++ b/timeutils.nimble @@ -1,6 +1,6 @@ # Package -version = "0.5.3" +version = "0.5.4" author = "Jonathan Bernard" description = "Utility methods to fill in the lacking time support in Nim\'s stdlib." license = "BSD3"