Developer Documentation Library > Scripting > UNICOM Intelligence Function Library > Date and time functions > Second
 
Second
Returns a whole number between 0 and 59, inclusive, representing the second of the minute.
Syntax
Second(Val)
Parameters
Val
Type: Date
The date for which you want to return the second.
(return)
Type: Long
The second of the minute (0 to 59).
Remarks
This is equivalent to DatePart("s", Val).
Example
This example uses the Second function to return the second of the current system time, which is returned using the TimeNow function.
Second(TimeNow())
See also
DateAdd
Date and time functions