Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
liujianping committed Jun 25, 2019
1 parent 9883e18 commit dfd87dc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,24 @@ Usage:

Examples:

(timestamp) $: ts
(format) $: ts -f "2019/06/25 23:30:10"
(before) $: ts -b "2019/06/25 23:30:10" ; echo $?
(after) $: ts -a "2019/06/25 23:30:10" ; echo $?
(timezone) $: ts -f "2019/06/25 23:30:10" -z "Asia/Shanghai"
(now timestamp) $: ts
(now add) $: ts --add 1d
(now sub) $: ts --sub 1d
(convert) $: ts "2019/06/24 23:30:10"
(pipe) $: echo "2019/06/24 23:30:10" | ts
(format) $: ts -f "2019/06/25 23:30:10"
(before) $: ts -b "2019/06/25 23:30:10" ; echo $?
(after) $: ts -a "2019/06/25 23:30:10" ; echo $?
(timezone) $: ts -f "2019/06/25 23:30:10" -z "Asia/Shanghai"


Flags:
--add duration add duration
-a, --after string after compare
-b, --before string before compare
-f, --format string time format
-h, --help help for ts
--sub duration sub duration
-z, --timezone string time zone
````

Expand Down

0 comments on commit dfd87dc

Please sign in to comment.