cf.minute¶
-
cf.
minute
(value)[source]¶ Return a
cf.Query
object for date-time minutes.In this context, any object which has a
minute
attribute is considered to be a date-time variable.If value is a
cf.Query
object thencf.minute(value)
is equivalent tovalue.addattr('minute')
. Otherwisecf.minute(value)
is equivalent tocf.eq(value, attr='minute')
.See also
cf.year
,cf.month
,cf.day
,cf.hour
,cf.second
,cf.dteq
,cf.dtge
,cf.dtgt
,cf.dtne
,cf.dtle
,cf.dtlt
Parameters: - value :
Either the value that the minute is to be compared with, or a
cf.Query
object for testing the minute.
Returns: - out : cf.Query
The query object.
Examples: >>> d = cf.dt(2002, 6, 16, 18, 30, 0) >>> d == cf.minute(30) True >>> d == cf.minute(cf.le(45)) True >>> d == cf.minute(7) False >>> d == cf.minute(cf.wi(15, 45)) True