- 何秒時間がかかったか計算
$ echo $(expr `date -d"10:46:00" +%s` - `date -d"10:41:10" +%s`)
290
- 日付指定
$ echo $(expr `date -d"2018-07-11 10:46:00" +%s` - `date -d"2018-07-10 10:41:10" +%s`)
86690
Go to list of users who liked
More than 5 years have passed since last update.
$ echo $(expr `date -d"10:46:00" +%s` - `date -d"10:41:10" +%s`)
290
$ echo $(expr `date -d"2018-07-11 10:46:00" +%s` - `date -d"2018-07-10 10:41:10" +%s`)
86690
Register as a new user and use Qiita more conveniently
Go to list of users who liked