day()
Returns the current day as a number from 1–31.
Examples

function setup()
size(100, 100)
background(200)
fill(0)
-- Get the current day.
local d = day()
-- Style the text.
textAlign(LEFT, CENTER)
textSize(12)
-- Display the day.
text("Current day: "..d, 20, 50, 60)
describe('The text "Current day: '..d..'" written in black on a gray background.')
end
Returns
Integer: current day between 1 and 31.