想要改进这个问题? Update the question所以它是on-topic堆栈溢出。
关闭 9 年前。
如果我的 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.
https://stackoverflow.com/questions/13449435/