Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

CLOCK

Portability Function: Converts a system time into an 8-character ASCII string.

Module

USE IFPORT

result = CLOCK( )

Results

The result type is character with a length of 8. The result is the current time in the form hh:mm:ss, using a 24-hour clock.

Example
USE IFPORT
character(8) whatimeisit
whatimeisit = CLOCK ()
print *, 'The current time is ',whatimeisit

See Also