Return a cf.Query object for date-time days.
In this context, any object which has a day attribute is considered to be a date-time variable.
If value is a cf.Query object then cf.day(value) is equivalent to value.addattr('day'). Otherwise cf.day(value) is equivalent to cf.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.dtlt
Parameters: |
|
---|---|
Returns: |
|
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