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