Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 vbs 脚本中从 Win32_TimeZone 对象获取时区。但是 Win32_TimeZone Caption 返回一个依赖于默认系统语言的翻译字符串。是否可以从 Win32_TimeZone.Caption 获取英语映射值?
不可以。时间和日期设置是区域性的,取决于本地计算机的区域设置。您需要自己编译每个时区的列表(作为数组或字典),然后引用 Bias 属性。