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

Method set_date

Lib/mailbox.py:1655–1660  ·  view source on GitHub ↗

Set delivery date of message, in seconds since the epoch.

(self, date)

Source from the content-addressed store, hash-verified

1653 return self._date
1654
1655 def set_date(self, date):
1656 """Set delivery date of message, in seconds since the epoch."""
1657 try:
1658 self._date = float(date)
1659 except ValueError:
1660 raise TypeError("can't convert to float: %s" % date) from None
1661
1662 def get_info(self):
1663 """Get the message's "info" as a string."""

Callers 5

get_messageMethod · 0.95
test_dateMethod · 0.95
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_dateMethod · 0.76