Intel® Fortran Compiler 16.0 User and Reference Guide
Portability Subroutine: Returns the components of the local time zone time in a nine-element array.
USE IFPORT
CALL LTIME (time,array)
time |
(Input) INTEGER(4). An elapsed time in seconds since 00:00:00 Greenwich mean time, January 1, 1970. |
||||||||||||||||||||
array |
(Output) INTEGER(4). One-dimensional array with 9 elements to contain local date and time data derived from time. The elements of array are returned as follows:
|
This subroutine is not year-2000 compliant, use DATE_AND_TIME instead.
USE IFPORT INTEGER(4) input_time, time_array(9) ! find number of seconds since 1/1/70 input_time=TIME() ! convert number of seconds to time array CALL LTIME (input_time, time_array) PRINT *, time_array