Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Atsuya Sato edited this page Nov 30, 2018 · 3 revisions

Date


millis() -> Int

Available

iOS, OSX

Examples

let m = millis()

Description

The millis() function returns the current millisecond as a value from 0 - 999.

※ [Bug] millis() behavior is different in Processing and ProcessingKit issue #107


second() -> Int

Available

iOS, OSX

Examples

let s = second()

Description

The second() function returns the current second as a value from 0 - 59.


minute() -> Int

Available

iOS, OSX

Examples

let m = minute()

Description

The minute() function returns the current minute as a value from 0 - 59.


hour() -> Int

Available

iOS, OSX

Examples

let h = hour()

Description

The hour() function returns the current hour as a value from 0 - 23.


day() -> Int

Available

iOS, OSX

Examples

let d = day()

Description

The day() function returns the current day as a value from 1 - 31


month() -> Int

Available

iOS, OSX

Examples

let m = month()

Description

The month() function returns the current month as a value from 1 - 12.


year() -> Int

Available

iOS, OSX

Examples

let y = year()

Description

The year() function returns the current year as an integer (2003, 2004, 2005, etc).