cf.minute¶
-
cf.minute(value)[source]¶ Return a
cf.Queryobject for date-time minutes.In this context, any object which has a
minuteattribute is considered to be a date-time variable.If value is a
cf.Queryobject 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.dtltParameters: - value :
Either the value that the minute is to be compared with, or a
cf.Queryobject 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