cf.Datetime.utcnow

classmethod Datetime.utcnow()[source]

Return the current Gregorian calendar UTC date and time.

Returns :
out: cf.Datatime

The current UTC date and time.

Examples

>>> cf.Datetime.utcnow()
<CF Datetime: 2013-11-19 17:55:59>
>>> d = cf.Datetime(2005, 6, 7)
>>> d.utcnow()
<CF Datetime: 2013-11-19 17:56:07>
>>> d
<CF Datetime: 2005-06-07 00:00:00>

Previous topic

cf.Datetime.timetuple

Next topic

cf.Dict

This Page