Name

Second Function

Syntax

Second(time)
time

Use: Required

Data Type: String, numeric, or date/time

Any valid expression that can represent a time value.

Return Value

An Integer in the range 0 to 59.

Description

Extracts the seconds from a given time expression.

Rules at a Glance

If the time expression time is Null, the Second function returns Null.

Get VBScript in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.