MCPcopy Index your code
hub / github.com/python/cpython / timetuple

Method timetuple

Lib/_pydatetime.py:2005–2016  ·  view source on GitHub ↗

Return local time tuple compatible with time.localtime().

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

dstMethod · 0.95
_build_struct_timeFunction · 0.85

Tested by

no test coverage detected