cf.Datetime.utcnow¶
-
classmethod
Datetime.
utcnow
()[source]¶ Return the current Gregorian calendar UTC date and time.
Examples 1: >>> cf.Datetime.utcnow() <CF Datetime: 2016-10-10T12:15:24.002376Z>
Returns: - out:
cf.Datetime
The current UTC date and time.
Examples 2: >>> cf.Datetime.utcnow() <CF Datetime: 2016-10-10T12:15:25.422179Z> >>> d = cf.Datetime(2005, 6, 7) >>> d.utcnow() <CF Datetime: 2016-10-10T12:15:50.375309Z> >>> d <CF Datetime: 2005-06-07T00:00:00Z>
- out: