Home > Language Reference > Date/Time Functions > Sec$

Sec$

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$()

Parameter

None.

Return value

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

See also

Date$
DateBetween
DateToDate$
Day$
Hour$
Hundreds
Min$
Month$
Time$
WeekDay
Year$

Example

msgbox(Sec$())