Global Function

second()

Declaration

func second() -> Int

Parameters

None

Returns

Int

Description

Current second returned by system clock. An Int value in the range 0 to 59.

Examples

var s = second()

Related

year()

month()

day()

hour()

minute()

second()

millis()

nanosecond()