Return a cf.Query object for a variable being not equal to a date-time.
cf.dtne(*args, **kwargs) is equivalent to cf.ne(cf.dt(*args, **kwargs)).
See also
cf.year, cf.month, cf.day, cf.hour, cf.minute, cf.second, cf.dteq, cf.dtge, cf.dtgt, cf.dtle, cf.dtlt
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> d = cf.dt(2002, 6, 16)
>>> d == cf.dtne(1990, 1, 1)
True
>>> d == cf.dtne(2002, 6, 16)
True
>>> d == cf.dtne('2100-1-1')
False
>>> d == cf.dtne('2001-1-1') & cf.dtne(2010, 12, 31)
True
The last example is equivalent to:
>>> d == cf.wi(cf.dt(2001, 1, 1), cf.dt('2010-12-31'))
True