GCC Bugzilla – Bug 7384
DATE_AND_TIME milliseconds field inactive on Windows
Last modified: 2003-09-23 22:14:17 UTC
As the current source depends on gettimeofday() to supply the milliseconds field for DATE_AND_TIME(), it is left zero on Windows. Programs which require this information must use a C wrapper to call the Windows API GetLocalTime().
Windows 2K et al
Execute the u77-test.f program which is included in gcc-testsuite
Apply the attached patch to libf2c/libU77/datetime_.c, arrange that _WIN32 is pre-defined by gcc for the build of this directory (e.g. by including -mwin32 in CFLAGS when building under cygwin). Note that [de]time_.c also look for _WIN32 to be pre-defined.
Responsible-Changed-Why: Fortran Maintainer.
State-Changed-Why: I (Toon Moene) installed your patch - it survived bootstrap
and make check on powerpc-unknown-linux-gnu.
Could you please check whether it actually fixes this PR ?
State-Changed-Why: Fixed according to submitter - by the patch he supplied
in this bug report.