https://github.com/jiro4989/tdur
時刻と時刻の差を計算するコマンド
https://github.com/jiro4989/tdur
cli duration golang time
Last synced: 26 days ago
JSON representation
時刻と時刻の差を計算するコマンド
- Host: GitHub
- URL: https://github.com/jiro4989/tdur
- Owner: jiro4989
- License: mit
- Created: 2018-08-14T16:23:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T12:40:44.000Z (over 6 years ago)
- Last Synced: 2024-06-20T02:02:11.443Z (10 months ago)
- Topics: cli, duration, golang, time
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tdur (Time Duration)
[](https://travis-ci.org/jiro4989/tdur)
時刻と時刻の差を計算するコマンド。
## 使い方
引数を2つ取って、その出力を秒、分、時で出力するだけ。
デフォルトは時。```bash
tdur 10:00 19:00
# -> 9tdur -m 10:00 19:00
# -> 540tdur -s 10:00 19:00
# -> 32400
```## インストール
`go get github.com/jiro4989/tdur`
## ヘルプ
`tdur -h`
Usage:
tdur [OPTIONS]Application Options:
--hour hour flag
-m, --minute minute flag
-s, --second second flagHelp Options:
-h, --help Show this help message## 開発方法
```
make deps
make
```