bash 时间戳转换
In Bash, how to convert an epoch timestamp to a human readable date format?
In Bash, you can use the date
command’s -d
option:
date -d @<your epoch>
Here @
specifies the epoch timestamp.
在此@
指定时期时间戳记。
One example:
一个例子:
$ date -d @1490157520.05
Wed Mar 22 12:38:40 HKT 2017
Answered by dtivl.
dtivl回答。
翻译自: https://www.systutorials.com/how-to-convert-epoch-timestamp-to-human-readable-date-format-in-bash/
bash 时间戳转换