如何为负时区设置TZ字符串。例如,UTC-2.30

发布于 2025-02-10 00:59:59 字数 219 浏览 1 评论 0原文

如何在Shell脚本中为负时区设置一个TZ字符串。

例如, 要为南澳大利亚的时区设置时区(UTC +09:30),提供了Shell脚本的下方 “ Export TZ = CET-09:30CEST-10:30,M10.1.0/2,M4.1.0/3”在Linux命令行中

以类似的方式,如何设置加拿大 - > Newfoundland时区(UTC-2.5)即,对于启用了日光储蓄的负时间区域?

How to set a tz string for negative time zones in shell script.

For example,
To set a time zone for South Australia(UTC +09:30), below shell script is provided
"export tz=CET-09:30CEST-10:30,M10.1.0/2,M4.1.0/3" in linux command line

In similar way, how to set for Canada -> Newfoundland Time Zone (UTC-2.5) i.e., for negative time zones with day light savings enabled?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

入怼 2025-02-17 00:59:59

你能尝试一下吗?

export TZ=CET+02:30CEST+1:30,M10.1.0/2,M4.1.0/3

Can you try this ?

export TZ=CET+02:30CEST+1:30,M10.1.0/2,M4.1.0/3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文