Add some alternate time formats.

This commit is contained in:
Jonathan Bernard 2016-10-13 06:31:11 -05:00
parent 915c5b1ea1
commit e0618f6520
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
# Package
version = "0.4.0"
version = "0.4.1"
author = "Jonathan Bernard"
description = "Personal Time Keeper"
license = "MIT"