BUG: GETFILEINFOQQ with UNPACKTIMEQQ Fails in MS-DOSLast reviewed: July 13, 1995Article ID: Q118434 |
The information in this article applies to:
SYMPTOMSUsing GETFILEINFOQQ to get the creation time of a file and UNPACKTIMEQQ to unpack the data into a usable form results in a time that is off by several hours. This problem occurs only in MS-DOS or version 3.1 of Windows.
STATUSMicrosoft has confirmed this to be a bug in Microsoft FORTRAN PowerStation for MS-DOS, version 1.0a.
MORE INFORMATIONTo generate the the incorrect file time:
Sample Codec compile options needed: none
include 'flib.fi' include 'flib.fd' integer*2 iyr, imon,iday,ihr,imin,isec character*1 AMPM /'a'/ record /FILE$INFO/info ihandle = FILE$FIRST len=getfileinfoqq('TEST.FOR' ,info, ihandle) call unpacktimeqq(info.lastwrite, iyr,imon,iday,ihr,imin,isec) if (ihr .gt. 11) AMPM = 'p' if (ihr .gt. 12) ihr = ihr-12 write (*,"(1x,2(I2.2,'-'),I2.2,I4,':',I2.2,a)") + imon,iday,iyr-1900,ihr,imin,AMPM END |
Additional reference words: 1.00a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |