cf.Datetime.timetuple¶
-
Datetime.
timetuple
()[source]¶ Return a tuple of the date-time 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 date-time attributes.
Examples: >>> d = cf.Datetime(2005, 6, 7, 23, 45, 57, 999888) >>> d.timetuple() (2005, 6, 7, 23, 45, 57, -1, 1, -1)