Second Function

Purpose

Returns an Integer specifying a whole number between 0 and 59, inclusive, representing the second of a minute.

Syntax

Second(time)

time:Date exp

Description

The function Second() returns the second of a Date.

Example

OpenW 1

Local z As Date

z = HmsToTime(110000, 20, 4000)

Print z, Second(z)

Print Now, Second(Now)

Print Date, " ", Second(Date)

Print "12:12:12", " ", Second(#12:12:12#)

Print FileDateTime("c:\windows\notepad.exe"), Second(FileDateTime("c:\windows\notepad.exe"))

See Also

CDate(), Date, Date$, DateAdd(), DateDiff(), DatePart(), DateSerial(), DateTime$(), DateToDmy, DateToDmyHms, DateValue(), Day(), DayNo(), DmyHmsToDate(), DmyToDate(), HmsToTime(), Hour(), IsDate(), Minute(), Month(), Now, Now$(), TimeSerial(), TimeToHms, TimeValue(), Second(), Week(), WeekDay(), Year()

{Created by Sjouke Hamstra; Last updated: 18/10/2014 by James Gaite}