cf.dtgt

cf.dtgt(*args, **kwargs)[source]

Return a comparison object for a datetime variable being later than a date and time.

cf.dtgt(*args, **kwargs) is equivalent to cf.gt(cf.dt(*args, **kwargs)).

Parameters :
args, kwargs :

Positional and keyword arguments for defining a datetime. See cf.dt for details.

Returns :
out : cf.Comparison

The comparison object.

Examples

>>> d = cf.dt(2002, 6, 16)
>>> d == cf.dtgt(1990, 1, 1)
True
>>> d == cf.dtgt(2002, 6, 16)
False
>>> d == cf.dtgt('2100-1-1')
False
>>> d == cf.dtgt('2001-1-1') & cf.dtle(2010, 12, 31)
True

The last example is equivalent to:

>>> d == cf.wi(cf.dt(2001, 1, 1), cf.dt('2010-12-31'))
True

Previous topic

cf.dtge

Next topic

cf.dtle

This Page