Developer Documentation Library > UNICOM Intelligence Function Library > Date and time functions > Second
 
Second
Returns a whole number between 0 and 59 representing the second of the minute.
Syntax
Second(<value>)
Parameters
<value>
Type: Date
The date for which you want to return the second.
(return)
Type: Long
The second of the minute (0 to 59).
Notes
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