DateTime.getSecond

Retrieves the second of the minute represented by datetime in the gregorian calendar.

class DateTime
int
getSecond
()

Return Value

Type: int

the second represented by datetime, or -1 if none is set.