Tim
Tim

Reputation: 20360

Equivalent for TzSpecificLocalTimeToSystemTime() on win2k?

One of our developers used this call:

TzSpecificLocalTimeToSystemTime() but unfortunately we cannot keep it as the code must work on Win2K as well.

What alternatives are there for similar functionality?

Upvotes: 0

Views: 626

Answers (2)

Hans Passant
Hans Passant

Reputation: 942267

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.

Upvotes: 1

Rob Kennedy
Rob Kennedy

Reputation: 163357

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

Upvotes: 1

Related Questions