cf.month¶
- cf.month(value)[source]¶
A
Queryobject for a “month of the year” condition.- Parameter:
- value:
The query condition’s value. If value is a sequence then it is automatically converted to a “member of set” condition for the values, e.g.
[12, 1]is equivalent tocf.set([12, 1]).
- Returns:
QueryThe query object.
Examples
>>> d = cf.dt(2002, 6, 16) >>> d == cf.month(6) True >>> d == cf.month(cf.le(7)) True >>> d == cf.month(7) False >>> d == cf.month(cf.wi(1, 6)) True >>> d == cf.month([5, 6]) True >>> d == cf.month(cf.set([5, 6])) True