date +%s 结果是本地时区还是 UTC?
Is date +%s result in local time zone or in UTC?
当我在终端中输入 date +%s
时,结果时间戳是在 UTC
中给出的还是取决于我的系统区域设置?有办法检查吗?
OS 是否有这方面的标准?
来自man date
:
%s seconds since 1970-01-01 00:00:00 UTC
所以现在是 UTC。
当我在终端中输入 date +%s
时,结果时间戳是在 UTC
中给出的还是取决于我的系统区域设置?有办法检查吗?
OS 是否有这方面的标准?
来自man date
:
%s seconds since 1970-01-01 00:00:00 UTC
所以现在是 UTC。