month
the quarter of a datetime
(datetime subject) -> long
Returns the quarter of given datetime.
Jan-Mar: 1 Apr-Jun: 2 Jul-Sep: 3 Oct-Dec: 4
Returns nil
if given datetime is nil
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |