Global Function
year()
Declaration
func year() -> Int
Parameters
Returns
Int
Description
Current year returned by system clock. The year value (eg 2017, 2018, etc) is returned as an Int.
Examples
var y = year()
Related
month()
day()
hour()
minute()
second()
millis()
nanosecond()