gpt4 book ai didi

linux - 如何在 Unix 中获取 GMT 时间?

转载 作者:IT老高 更新时间:2023-10-28 12:37:40 24 4
gpt4 key购买 nike

如果我的 Unix 机器设置为 IST 时区,如何获取当前的 GMT 时间?

最佳答案

您可以使用日期命令的-u选项:

date -u

-u Display (or set) the date in Greenwich Mean Time (GMT-universal time), bypassing the normal conversion to (or from) local time.

关于linux - 如何在 Unix 中获取 GMT 时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13449435/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com