获取VBA(Excel)中的时区信息 [英] Get Timezone Information in VBA (Excel)

查看:211
本文介绍了获取VBA(Excel)中的时区信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想确定VBA在特定日期的不同国家/地区的GMT / UTC(包括夏令时)的时间偏移量。有任何想法吗?谢谢

I would like to determine a time offset to GMT/UTC (including daylight saving time) for different countries at a specific date in VBA. Any ideas? Thanks

推荐答案

VBA不提供这样做的功能,但是Windows API没有。幸运的是,您也可以使用VBA的所有功能。本页介绍如何执行此操作:

VBA doesn't offer functions to do that, but the Windows API does. Luckily you can use all those functionality from VBA as well. This page describes how to do it:


时区和夏令时间

Time Zones And Daylight Savings Time

这篇关于获取VBA(Excel)中的时区信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆