cf.Datetime.timetuple

Datetime.timetuple()[source]

Return a tuple of the datetime attributes.

d.timetuple() is equivalent to (d.year, d.month, d.day, d.hour, d.minute, d.second, d.dayofwk, d.dayofyr, -1).

Returns :
out : tuple

The datetime attributes.

Examples

>>> d = cf.Datetime(2005, 6, 7, 23, 45, 57)
>>> d.timetuple()
(2005, 6, 7, 23, 45, 57, -1, 1, -1)

Previous topic

cf.Datetime.copy

Next topic

cf.Datetime.utcnow

This Page