cf.year¶
-
cf.
year
(value)[source]¶ A
Query
object for a “year” condition.See also
cf.year
,cf.month
,cf.day
,cf.hour
,cf.minute
,cf.second
, cf.seasons`,cf.djf
,cf.mam
,cf.jja
,cf.son
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