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

Method date

Lib/_pydatetime.py:2070–2072  ·  view source on GitHub ↗

Return the date part.

(self)

Source from the content-addressed store, hash-verified

2068 return _build_struct_time(y, m, d, hh, mm, ss, 0)
2069
2070 def date(self):
2071 "Return the date part."
2072 return date(self._year, self._month, self._day)
2073
2074 def time(self):
2075 "Return the time part, with tzinfo None."

Callers 15

_localized_monthClass · 0.80
_localized_dayClass · 0.80
weekdayFunction · 0.80
itermonthdatesMethod · 0.80
calendar.pyFile · 0.80
timegmFunction · 0.80
convert_dateFunction · 0.80
DatetimeDateTestsClass · 0.80
test_formatMethod · 0.80
test_extractMethod · 0.80
test_combineMethod · 0.80
test_extractMethod · 0.80

Calls 1

dateClass · 0.85

Tested by 9

test_formatMethod · 0.64
test_extractMethod · 0.64
test_combineMethod · 0.64
test_extractMethod · 0.64
test_more_astimezoneMethod · 0.64
checkinsideMethod · 0.64