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

ID 767251
Date 11/07/2023
Public

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

Document Table of Contents

Date and Time Intrinsic Subroutines

The following table lists date and time intrinsic subroutines.

Name

Procedure Type

Description

CPU_TIME

Intrinsic subroutine

Returns the processor time in seconds.

DATE

Intrinsic subroutine

Returns the ASCII representation of the current date (in dd-mmm-yy form).

DATE_AND_TIME

Intrinsic subroutine

Returns the date and time. This is the preferred procedure for date and time.

IDATE

Intrinsic subroutine

Returns three integer values representing the current month, day, and year.

SYSTEM_CLOCK

Intrinsic subroutine

Returns data from the system clock.

TIME

Intrinsic subroutine

Returns the ASCII representation of the current time (in hh:mm:ss form).

The portability routines GETDAT, GETTIM, SETDAT, and SETTIM also supply this functionality.