Skip to content

Commit

Permalink
updated usage information
Browse files Browse the repository at this point in the history
  • Loading branch information
jpohjolainen committed Jun 4, 2015
1 parent 5707871 commit b3e1e62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
```shell
usage: ./calc-date <date> +-<delta>|<date>

Returns a date after <delta> is added or substracted to <date> or time difference
between two dates.

date iso8601 format, e.g. 2015-06-01T09:45:53
delta time to count from date. Select operation with + or - followed
by any combination of:
Expand Down
3 changes: 3 additions & 0 deletions calc-date
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def main():
if len(sys.argv) < 3:
print "usage: %s <date> +-<delta>|<date>" % (sys.argv[0])
print """
Returns a date after <delta> is added or substracted to <date> or time difference
between two dates.
date iso8601 format, e.g. 2015-06-01T09:45:53
delta time to count from date. Select operation with + or - followed
by any combination of:
Expand Down

0 comments on commit b3e1e62

Please sign in to comment.