Return UTC time tuple compatible with time.gmtime().
(self)
| 2059 | return (self - _EPOCH).total_seconds() |
| 2060 | |
| 2061 | def utctimetuple(self): |
| 2062 | "Return UTC time tuple compatible with time.gmtime()." |
| 2063 | offset = self.utcoffset() |
| 2064 | if offset: |
| 2065 | self -= offset |
| 2066 | y, m, d = self.year, self.month, self.day |
| 2067 | hh, mm, ss = self.hour, self.minute, self.second |
| 2068 | return _build_struct_time(y, m, d, hh, mm, ss, 0) |
| 2069 | |
| 2070 | def date(self): |
| 2071 | "Return the date part." |