
localtime function returns different values for different winnt operating systems
<snip>
Quote:
> + On the winnt English version:
> current time in number of seconds = 974151376
> + On the winnt Japanese version:
> current time in number of seconds = 974212576
> The difference = 61200 which is about 17 hours difference.
> Any one know why?
You probably have an outdated C run-time library (msvcrt.dll) on one
of them. Try again with the version that comes in the latest Visual
Studio service pack. There have been lots of bug fixes in the time
functions. (There are probably lots of bugs still there. In
particular they can never get daylight savings calculations right; you
might be better off using OS functions instead.)
By the way, the default time-zone for Microsoft software is Pacific
(to suit Redmond). Tokyo is 17 hours ahead of Redmond.
--
Any opinions expressed are my own and not necessarily those of Roundpoint.