Subj : Reading PC time To : borland.public.cpp.borlandcpp From : "Mike Mellen" Date : Tue Mar 30 2004 01:32 pm I'm supporting a 16-bit app developed with BCPP 4.51. At various times it has to read the current time from the PC using time() and localtime(). On Win98, it works fine. On Win2K and WinXP, some users reported that the reported time was sometimes not correct. I have been able to duplicate the problem by running the app and having it read the time, which it does correctly. Then, while the app is still running, I change the PC's clock by bumping the hour ahead or back. The app then reports the correct minutes and seconds, but still reports the original hour that it was reporting before I changed the clock. If I close the app, then restart it, it now reports the new time "correctly". Any ideas? .