cf.year

cf.year(value)[source]

A Query object for a “year” condition.

Parameter
value:

The query condition’s value.

Returns
Query

The query object.

Examples

>>> d = cf.dt(2002, 6, 16)
>>> d == cf.year(2002)
True
>>> d == cf.year(cf.le(2003))
True
>>> d == cf.year(2001)
False
>>> d == cf.year(cf.wi(2003, 2006))
False