Skip to content

jiro4989/tdur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdur (Time Duration)

Build Status

時刻と時刻の差を計算するコマンド。

使い方

引数を2つ取って、その出力を秒、分、時で出力するだけ。
デフォルトは時。

tdur 10:00 19:00
# -> 9

tdur -m 10:00 19:00
# -> 540

tdur -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 flag

Help Options:
  -h, --help    Show this help message

開発方法

make deps
make