Sec$ – Date/Time Functions





Sec$ Function


Description

The Sec$ function returns the second of the minute (00 to 59).

Usage

Used for example to concatenate the second of the minute with a filename.

Syntax

var$ = Sec$()

Parameters

None.

Return Value

var$, string, second of the minute (2 characters). If the second is less than 10, a leading 0 is added.

Example

msgbox(Sec$())