Time()

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Library Routines > Input and Output functions >

Time()

Description

Calculate the number of seconds elapsed since 00:00:00 1/1/70 and the time specified by the parameter.

 

This time convention is compatible with the Microsoft® C time functions. If no parameters are specified, use the current system time and date. You can also substitute NIL for any parameter in the second and third form to use the current system values for that parameter.

 

Type

REGULAR FUNCTION

 

Usage

If no parameter:

Now = Time()

 

If two parameters:

Then = Time(DateStr, TimeStr)

 

If six parameters:

Then = Time(Mon, Day, Yr, Hr, Min, Sec)

 

DateStr

STRING of the form "MON/DAY/YR" or NIL

Date in the form "MON/DAY/YR".

TimeStr

STRING of the form "HR:MIN:SEC" or NIL

Date in the form "HR:MIN:SEC".

Mon

INDEX (where 1 = January) or NIL

Month reported as number.

Day

INDEX or NIL

Day reported as number.

Yr

INDEX (where 0 = 1900) or NIL

Year reported as number of years since 1900.

Hr

INDEX or NIL

Hour reported as number.

Min

INDEX or NIL

Minute reported as number.

Sec

INDEX or NIL

Second reported as number.

Now

INDEX

Number of seconds since 00:00:00 1/1/70.

Then

INDEX

Number of seconds since specified time or since 00:00:00 1/1/70 if NIL.

 

Related Topics