Global Function

month()

Declaration

func month() -> Int

Parameters

None

Returns

Int

Description

Current month returned by system clock. The month value returned is an Int value in the range 1 to 12.

Examples

var m = month()

Related

year()

month()

day()

hour()

minute()

second()

millis()

nanosecond()