如何让时间显示为世界标准时间 #431
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
如题,默认可读取的数据信息仅能读取当前时区的时间,参考了surftime后在编辑中的更新设置里填写了%z -800,或%Z GMT会分别显示中国标准时间 -800和中国标准时间 GMT 字样,只填写%Z会显示中国标准时间,有什么办法可以让输出的信息直接显示为世界标准时间的数字吗
strftime() 里面的
%z
就是打印当前时间是什么时区的。想要显示世界时或者其他时区,目前只能用「自定义脚本」数据:
如果想格式化日期,可以这样写: