date】 显示系统时间【linux】


指定格式的显示时间

date +"%Y%m%d_%H%M%S"

将Unix的时间戳转换为日期(Linux)

date -d @1440359821

将Unix的时间戳转换为日期(Mac)

date -r 1440359821

date】 display the system date and time【linux】


Print date in format suitable for affixing to file names

date +"%Y%m%d_%H%M%S"

Convert Unix timestamp to Date(Linux)

date -d @1440359821

Convert Unix timestamp to Date(Mac)

date -r 1440359821


腾图小抄 SCWY.net v0.03 小抄561条 自2022-01-02访问368860次