MCPcopy Index your code
hub / github.com/RustPython/RustPython / date

Method date

Lib/_pydatetime.py:2030–2032  ·  view source on GitHub ↗

Return the date part.

(self)

Source from the content-addressed store, hash-verified

2028 return _build_struct_time(y, m, d, hh, mm, ss, 0)
2029
2030 def date(self):
2031 "Return the date part."
2032 return date(self._year, self._month, self._day)
2033
2034 def time(self):
2035 "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 7

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