From e0618f65209479e8024c125cb0ae1fa1dbd6fe06 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 13 Oct 2016 06:31:11 -0500 Subject: [PATCH] Add some alternate time formats. --- ptk.nim | 5 +++-- ptk.nimble | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ptk.nim b/ptk.nim index 68649dd..253945b 100644 --- a/ptk.nim +++ b/ptk.nim @@ -23,7 +23,8 @@ const ISO_TIME_FORMAT = "yyyy:MM:dd'T'HH:mm:ss" const TIME_FORMATS = @[ "H:mm", "HH:mm", "H:mm:ss", "HH:mm:ss", - "yyyy:MM:dd'T'HH:mm:ss", "yyyy:MM:dd'T'HH:mm"] + "yyyy:MM:dd'T'HH:mm:ss", "yyyy:MM:dd'T'HH:mm", + "yyyy:MM:dd HH:mm:ss", "yyyy:MM:dd HH:mm"] #proc `$`*(mark: Mark): string = #return (($mark.uuid)[ @@ -323,7 +324,7 @@ Options: let now = getLocalTime(getTime()) # Parse arguments - let args = docopt(doc, version = "ptk 0.4.0") + let args = docopt(doc, version = "ptk 0.4.1") if args["--echo-args"]: echo $args diff --git a/ptk.nimble b/ptk.nimble index bcda6d8..93063d5 100644 --- a/ptk.nimble +++ b/ptk.nimble @@ -1,6 +1,6 @@ # Package -version = "0.4.0" +version = "0.4.1" author = "Jonathan Bernard" description = "Personal Time Keeper" license = "MIT"