12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>& TA(2), 'seconds of system time.'FDATEFGETCPortability Function or Subroutine: Returns the current date and time as an ASCII string.Module: USE IFPORTFunction Syntax:result = FDATE ( )Subroutine Syntax:CALL FDATE (string)string(Optional; Output) Character*(*). It is returned as a 24-character string in the form:Mon Jan 31 04:37:23 2001Any value in string before the call is destroyed.Results:The result of the function FDATE and the value of string returned by the subroutineFDATE(string) are identical. Newline and NULL are not included in the string.When you use FDATE as a function, declare it as:CHARACTER*24 FDATECompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: the DATE_AND_TIME intrinsic procedure in the Language <strong>Reference</strong>ExampleUSE IFPORTCHARACTER*24 today!CALL FDATE(today)write (*,*), 'Today is ', today!write (*,*), 'Today is ', fdate()Portability Function: Reads the next available character from a file specified by a <strong>Fortran</strong> unitnumber.2-76

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

Saved successfully!

Ooh no, something went wrong!