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

Method ctime

Lib/_pydatetime.py:1103–1109  ·  view source on GitHub ↗

Return ctime() style string.

(self)

Source from the content-addressed store, hash-verified

1101
1102
1103 def ctime(self):
1104 "Return ctime() style string."
1105 weekday = self.toordinal() % 7 or 7
1106 return "%s %s %2d 00:00:00 %04d" % (
1107 _DAYNAMES[weekday],
1108 _MONTHNAMES[self._month],
1109 self._day, self._year)
1110
1111 def strftime(self, format):
1112 """

Callers 12

load_statsMethod · 0.45
do_readMethod · 0.45
flattenMethod · 0.45
strftest1Method · 0.45
test_ctimeMethod · 0.45
test_more_ctimeMethod · 0.45
test_conversionsMethod · 0.45
test_ctimeMethod · 0.45
__init__Method · 0.45
get_cnonceMethod · 0.45
mainFunction · 0.45

Calls 1

toordinalMethod · 0.95

Tested by 6

strftest1Method · 0.36
test_ctimeMethod · 0.36
test_more_ctimeMethod · 0.36
test_conversionsMethod · 0.36
test_ctimeMethod · 0.36