开发者

Equivalent for TzSpecificLocalTimeToSystemTime() on win2k?

开发者 https://www.devze.com 2022-12-21 11:13 出处:网络
One of our developers used this call: TzSpecificLocalTimeToSystemTime() bu开发者_C百科t unfortunately we cannot keep it as the code must work on Win2K as well.

One of our developers used this call:

TzSpecificLocalTimeToSystemTime() bu开发者_C百科t unfortunately we cannot keep it as the code must work on Win2K as well.

What alternatives are there for similar functionality?


There is no equivalent, not even with WINE. It relies on timezone info stored in the registry, retrieved with GetTimeZoneInformation(). Note how the WINE code ends up in find_reg_tz_info(). That info is just missing in Win2k.

You'd have to create your own timezones table.


If you're open to including LGPL code in your project, you could grab that function's implementation from Wine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号