cf.second

cf.second(value)[source]

A Query object for a “second of the minute” condition.

Parameter:
value:

The query condition’s value. If value is a sequence then it is automatically converted to a “member of set” condition for the values, e.g. [12, 1] is equivalent to cf.set([12, 1]).

Returns:
Query

The query object.

Examples

>>> d = cf.dt(2002, 6, 16, 18, 30, 0)
>>> d == cf.second(0)
True
>>> d == cf.second(cf.le(30))
True
>>> d == cf.second(30)
False
>>> d == cf.second(cf.wi(0, 30))
True
>>> d == cf.second([5, 0])
True
>>> d == cf.second(cf.set([5, 0]))
True