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 then cf.minute(value) is equivalent to value.addattr('minute'). Otherwise cf.minute(value) is equivalent to cf.eq(value, attr='minute').

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