Second Procedure

Version 7

Returns the current or specified date/time second (0-59).

Syntax

[ lSecond = ] Second ( [ dt ] )

The Second procedure syntax has the following parts:

Name

Type

Description

lSecond

Long

Return value: seconds, between 0 and 59

dt

[Val] DateTime

Date time if given

Comments

If date time is not specified, current date time is used. 

Example

 

print Second()   ! prints current second "17"

print Second(dt) ! prints second of "dt"

See Also

Day, Month, Year, Hour, Minute, MillSecond, Weekday, DateTime Data Type