User's Guide

GETDATE

Find the current date and time and return it to the calling procedure

Function:

Finds the current date and time and returns it to the calling procedure in the form (dd,mm,yy,hh,mm,ss), where DAY, MONTH, YEAR, HOUR, MIN, and SEC are two-character strings.

Parameters:

Day. The day of the month will be returned as a two-digit integer in a character string (e.g., "13" or "02"). Month. The month will be returned as a two-digit integer in a character string (e.g., "10" or "01"). Year. The year will be returned as a two-digit integer in a character string (e.g., "92"). Hour. The hour at the current time will be returned as a two-digit integer in a character string. Minute. The minute at the current time will be returned as a two-digit integer in a character string. Second. The second at the current time will be returned as a two-digit integer in a character string.

Example:

  1. LAS> getdate month=month day=day year=year hour=hour min=min sec=sec

    The current date and time are returned to the local variables month, day, year, hour, min, and sec.

Description/Algorithm:

The program calls a system-specific routine to return the current date, and time. The date and time are converted to (dd,mm,yy,hh,mm,ss) form and returned in the specified TAE parameters.

Nonfatal Error messages:

    None.

Fatal Error messages:

    None.

User Notes:

    None.