用于转换 UTC 日期的夏令时信息

发布于 2024-09-01 02:53:25 字数 220 浏览 0 评论 0原文

我正在使用 Microsoft SQL Report Builder 2.0 开发报告。我的要求之一是通过将“时区偏移”(-08:00)作为参数传递给报告来显示时区信息。根据偏移值,我们将 UTC 日期转换为其适当的时区值(使用 VB.NET)并显示它。但是,这没有考虑夏令时。是否有办法将夏令时相关的更改纳入我们的转换中?

仅供参考,该平台是 .NET Framework 3。

谢谢, 维拉

I am developing reports using Microsoft SQL Report Builder 2.0. One of my requirement is to display the timezone information by passing "Timezone Offset" (-08:00) as a parameter to the report. Based on the offset value, we convert a UTC date to its appropriate timezone value (using VB.NET) and display the same. However, this does not consider the daylight savings. Is there anyway to incorporate daylight savings related changes to our conversion?

FYI, the platform is .NET Framework 3.

Thanks,
Veera

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

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

发布评论

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

评论(2

掀纱窥君容 2024-09-08 02:53:25

看一下以下内容:

您可以利用各种属性和方法。

Take a look at the following:

There are all sorts of properties and methods that you may be able to take advantage of.

南街女流氓 2024-09-08 02:53:25

我得到了答案,如果我想访问代码中的时区。我需要添加“system.core”&那么如果 imezone 创建一个 timezoninfo 对象,我就可以创建自定义时区。我们还可以从系统中获取所有可用区域的时区。

http://msdn.microsoft.com /en-us/library/system.timezoneinfo_members(v=VS.100).aspx
http://msdn.microsoft.com/en -us/library/bb309898(v=VS.100).aspx

I got the answer, If I want to acce.ss the timezone in the code. I need to add the "system.core" & then if imezonecreate a timezoninfo object and I can create custom timezone. Also we can get all timezones available zones from the system.

http://msdn.microsoft.com/en-us/library/system.timezoneinfo_members(v=VS.100).aspx
http://msdn.microsoft.com/en-us/library/bb309898(v=VS.100).aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文