itime puts the current system time into an integer array: hour, minute, and second. The subroutine is called by:
call itime( iarray ) |
|||
iarray |
INTEGER*4 |
Output |
3-element array: iarray(1) = hour iarray(2) = minute iarray(3) = second |
Example: itime:
demo% cat titime.f INTEGER*4 iarray(3) call itime( iarray ) write (*, "(’ The time is: ’,3i5)" ) iarray end demo% f95 titime.f demo% a.out The time is: 15 42 35 |
See also time(3F), ctime(3F), and fdate(3F).