Windows中的历史夏时制 [英] Historical daylight savings in Windows

查看:97
本文介绍了Windows中的历史夏时制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows中是否有一种简便的方法(使用Delphi,而不是.NET)将夏令时转换为本地时间,并进行了夏令时调整。

Is there a easy way in Windows (using Delp not .NET) to convert UTC times to a local time, with daylight saving adjustments.

数据返回12年,因此需要考虑这段时间内DST开始/结束日期的变化。

Data goes back 12 years, so needs to take account of changes in DST start/end dates over that time.

推荐答案

有趣,非常相似问题昨天在LinkedIn上出现。

Funny, a very similar question appeared yesterday on LinkedIn.

这是我在此处给出的答案:

This is the answer I gave there:


时区有些浮动,
特别是在夏令时
开始/结束时。

Time Zones are somewhat fluid, especially when Daylight Saving Time starts/finishes.

此数据库(
http://en.wikipedia.org/wiki/Tz_data
)定义了时区,并且
有时会更改,因此您还需要
更新机制。

This database ( http://en.wikipedia.org/wiki/Tz_database ) defines the time zones, and it changes sometimes, so you need an update mechanism as well.

有一个.NET实现,您可以包装
或用作基础:
http://www.codeproject.com/KB/locale/zoneinfo_dotnet_api.aspx

There is a .NET implementation that you could wrap, or use as a base: http://www.codeproject.com/KB/locale/zoneinfo_dotnet_api.aspx

我不确定此
Delphi实现的最新情况:
http://sourceforge.net/projects/delphitz/

让我们知道您的最终实现。

Let us know your final implementation.

编辑:
上面提到的项目似乎是空的,因此我进一步搜索并找到了 Delphi TimeZone数据库项目仍处于活动状态。

- jeroen

这篇关于Windows中的历史夏时制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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