Time.day, day

Retrieve the day for the current or given time. Integer is returned without a leading zero.

// Print the day for the current time

// Print the day for the given time, in this case: 21

Optional parameter: time_t (Unix timestamp), coordinated universal time (UTC)

Returns: Integer 1-31

If you have set a timezone using zone(), beginDST(), etc. the hour returned will be local time. You must still pass in UTC time, otherwise the time offset will be applied twice, potentially causing an incorrect date.