
mac 上直接安装
$: brew tap liujianping/tap && brew install ts 操作很简单,贴个帮助
$: ts -h timestamp convert & compare tool Usage: ts [flags] 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" Flags: -a, --after string after compare -b, --before string before compare -f, --format string time format -h, --help help for ts -z, --timezone string time zone 1 balabalaguguji 2021 年 4 月 23 日 直接有网页版本,这个很好用呀 https://tools.fun/timestamp.html |