cf.day¶
-
cf.
day
(value)[source]¶ 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 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.dtlt
Parameters: - value:
Either the value that the day is to be compared with, or a
cf.Query
object 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