CLOCK

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

Module: USE DFPORT

Syntax

result = CLOCK( )

Results:

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

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: DATE_AND_TIME

Example

USE DFPORT
character(8) whatimeisit
whatimeisit = CLOCK ()
write *, 'The current time is ',whatimeisit