cf.second¶
- cf.second(value)[source]¶
A
Queryobject 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 tocf.set([12, 1]).
- Returns:
QueryThe 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