Icon SecondOf

Unit: Internal

Available In: Client and Server Applications

function SecondOf(Value: DateTime; UTC: Boolean=False): Integer

The SecondOf function returns the second number of the input parameter in local or UTC time. The return value is an Integer value between 0 and 59.

Examples

X := SecondOf(Time);  // X is 20 (assuming a time of 12:10:20 PM)
Image