Silverfrost Logo About Us | Contact Us
 

DATE_AND_TIME

Platform

x64, Win32, .NET

Purpose

To get the real-time date and clock time.

Class

Subroutine

Syntax

SUBROUTINE DATE_AND_TIME([DATE, TIME, ZONE, VALUES])
CHARACTER (LEN=*), INTENT(OUT)::DATE, TIME, ZONE
INTEGER, INTENT(OUT)::VALUES(8)

Description

All the arguments are optional.

The leftmost 8 characters of DATE are assigned a value of the form CCYYMMDD, where CC is the century, YY the year , MM the month, and DD the day.

The leftmost 10 characters of TIME are assigned a value of the form hhmmss.sss, where hh is the hour, mm is the minutes, and ss.sss is the seconds and milliseconds.

The leftmost 5 characters of ZONE are assigned a value of the form �hhmm, where hh and mm are the time difference in hours and minutes with respect to Coordinated Universal Time (UTC i.e. GMT).

VALUES(1) is the year (e.g. 1997).

VALUES(2) is the number of the month (1 denotes January).

VALUES(3) is the day of the month in the range 1 to 31.

VALUES(4) is the time difference in minutes with respect to UTC.

VALUES(5) is the hour in the range 0 to 23.

VALUES(6) is the minutes in the range 0 to 59.

VALUES(7) is the seconds in the range 0 to 59.

VALUES(8) is the milliseconds in the range 0 to 999.

Return value

On error character variables are returns as blanks and integer values are returned as -HUGE(0).

 

 

Copyright © 1999-2017 Silverfrost Limited