12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>stime(Input) INTEGER(4). Numeric time data to be formatted. Number of seconds since 00:00:00Greenwich mean time, January 1, 1970.tarray(Output) INTEGER(4). One-dimensional array with 9 elements used to contain numeric time data.The elements of tarray are returned as follows:ElementValuetarray(1) Seconds (0-59)tarray(2) Minutes (0-59)tarray(3) Hours (0-23)tarray(4) Day of month (1-31)tarray(5) Month (0-11)tarray(6) Number of years since 1900tarray(7)Day of week (0-6, where 0 is Sunday)tarray(8) Day of year (0-365)tarray(9)Daylight saving flag (0 if standard time, 1 if daylight saving time)CAUTION. This subroutine may cause problems with the year 2000. Use theDATE_AND_TIME intrinsic subroutine instead (see the Language <strong>Reference</strong>).CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBExampleuse IFPORTinteger(4) stime, timearray(9)! initialize stime to number of seconds since! 00:00:00 GMT January 1, 1970stime = time()CALL GMTIME (stime, timearray)print *, timearrayend2-158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!