LoginSignup
25
21

More than 5 years have passed since last update.

dateコマンドでunixタイムを文字列に変換する

Last updated at Posted at 2014-06-30

unixtimeから人が見やすい文字列

$ date -r 1404988200
2014年 7月10日 木曜日 19時30分00秒 JST

ISO8601形式の文字列からunixtime

$ date -jf '%Y-%m-%dT%H:%M:%S%z' '2014-07-10T19:30:00+0900' +%s
1404988200

参考にした記事

25
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25
21