Return UTC time tuple compatible with time.gmtime().
(self)
| 1907 | return (self - _EPOCH).total_seconds() |
| 1908 | |
| 1909 | def utctimetuple(self): |
| 1910 | "Return UTC time tuple compatible with time.gmtime()." |
| 1911 | offset = self.utcoffset() |
| 1912 | if offset: |
| 1913 | self -= offset |
| 1914 | y, m, d = self.year, self.month, self.day |
| 1915 | hh, mm, ss = self.hour, self.minute, self.second |
| 1916 | return _build_struct_time(y, m, d, hh, mm, ss, 0) |
| 1917 | |
| 1918 | def date(self): |
| 1919 | "Return the date part." |
nothing calls this directly
no test coverage detected