beautypg.com

Date – Visara Master Console Center Scripting Guide User Manual

Page 90

background image

Chapter 5 Script Commands

Scripting Guide

90

DATE

Syntax:

DATE( [$DateString]) ==> %EpochSeconds

Description:

Converts a date string to a date value.

Action:

The date string is converted to epoch seconds. Epoch seconds can be

easily used in time calculations.

Parameters:

$DateString. String expression. Optional. The date string to

convert. Must be in the “MM/DD/YY” format. “MM” represents the

month number, “DD” represents the day number, and “YY”” represents
the year. “/” is used as the separator. If not specified, the current

system date is used. The year must be in the range 1/1/70 (1970) to
12/31/37 (2037).

Returns:

Numeric value. The date expressed as the number of seconds past the

epoch at the beginning of the specified date (the time of 00:00:00).

Notes:

Refer also to Date/Time on page 40.

Example:

%Date := DATE( “08/22/98”)

See Also:

SECONDS, TIME, TIMESTR, VERSION, WAITFOR, WAITUNTIL