cf.dteq¶
-
cf.dteq(*args, **kwargs)[source]¶ Return a
cf.Queryobject for a variable being equal to a date-time.cf.dteq(*args, **kwargs)is equivalent tocf.eq(cf.dt(*args, **kwargs)).See also
cf.year,cf.month,cf.day,cf.hour,cf.minute,cf.second,cf.dtge,cf.dtgt,cf.dtne,cf.dtle,cf.dtltParameters: - args, kwargs :
Positional and keyword arguments for defining a date-time. See
cf.dtfor details.
Returns: - out : cf.Query
The query object.
Examples: >>> d = cf.dt(2002, 6, 16) >>> d == cf.dteq(1990, 1, 1) True >>> d == cf.dteq(2002, 6, 16) True >>> d == cf.dteq('2100-1-1') False >>> d == cf.dteq('2001-1-1') & cf.dteq(2010, 12, 31) True
The last example is equivalent to:
>>> d == cf.wi(cf.dt(2001, 1, 1), cf.dt('2010-12-31')) True