diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2018-07-09 20:04:25 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-09 20:04:25 +0200 |
commit | 3b310e91cd592b76cd34678ae394c1af2c3808f3 (patch) | |
tree | 1ff39481058d79f1e2aa2dbc4ef4fd4fcb95dbbc /lib/pure/strformat.nim | |
parent | c6671776a16127be30a627d1672fee9897a2320f (diff) | |
download | Nim-3b310e91cd592b76cd34678ae394c1af2c3808f3.tar.gz |
New implementations of times.parse & times.format (#8094)
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r-- | lib/pure/strformat.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim index 247b9ec5c..f13eb5e8e 100644 --- a/lib/pure/strformat.nim +++ b/lib/pure/strformat.nim @@ -683,8 +683,8 @@ when isMainModule: # works: import times - var nullTime: DateTime - check &"{nullTime:yyyy-mm-dd}", "0000-00-00" + var dt = initDateTime(01, mJan, 2000, 00, 00, 00) + check &"{dt:yyyy-MM-dd}", "2000-01-01" var tm = fromUnix(0) discard &"{tm}" |