cf.day¶
- cf.day(value)[source]¶
A
Queryobject for a “day of the month” condition.See also
cf.year,cf.month,cf.hour,cf.minute,cf.second,cf.seasons,cf.djf,cf.mam,cf.jja,cf.son- 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.day(16) True >>> d == cf.day(cf.le(19)) True >>> d == cf.day(7) False >>> d == cf.day(cf.wi(1, 21)) True >>> d == cf.day([5, 16]) True >>> d == cf.day(cf.set([5, 16])) True