cf.month¶
-
cf.month(value)[source]¶ Return a
cf.Queryobject for date-time months.In this context, any object which has a
monthattribute is considered to be a date-time variable.If value is a
cf.Queryobject thencf.month(value)is equivalent tovalue.addattr('month'). Otherwisecf.month(value)is equivalent tocf.eq(value, attr='month').See also
cf.year,cf.day,cf.hour,cf.minute,cf.second,cf.dteq,cf.dtge,cf.dtgt,cf.dtne,cf.dtle,cf.dtltParameters: - value :
Either the value that the month is to be compared with, or a
cf.Queryobject for testing the month.
Returns: - out : cf.Query
The 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