> Even so, the Windows implementation is of course broken (it always uses > hard-coded DST rules and even seems to require TZ to be set)
Actually it might even be fine. The relevant MSDN Library pages are worded confusingly; I will perform some tests and report back. If localtime and mktime indeed work well on Windows, I would in fact prefer them to be used, not just because that will mean less/no platform- dependent code but also because they honour the TZ environment variable like POSIX-compliant implementations do. It is worth mentioning that VC9 has 64-bit and 32-bit versions of time_t, localtime and mktime while VC6 only has a 32-bit version. Unfortunately, none of these versions work with times before 1970. -- Oleg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php