Return local time tuple compatible with time.localtime().
(self)
| 2003 | return cls(*(date_components + time_components)) |
| 2004 | |
| 2005 | def timetuple(self): |
| 2006 | "Return local time tuple compatible with time.localtime()." |
| 2007 | dst = self.dst() |
| 2008 | if dst is None: |
| 2009 | dst = -1 |
| 2010 | elif dst: |
| 2011 | dst = 1 |
| 2012 | else: |
| 2013 | dst = 0 |
| 2014 | return _build_struct_time(self.year, self.month, self.day, |
| 2015 | self.hour, self.minute, self.second, |
| 2016 | dst) |
| 2017 | |
| 2018 | def _mktime(self): |
| 2019 | """Return integer POSIX timestamp.""" |
nothing calls this directly
no test coverage detected