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

Method set_date

Lib/mailbox.py:1648–1653  ·  view source on GitHub ↗

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

(self, date)

Source from the content-addressed store, hash-verified

1646 return self._date
1647
1648 def set_date(self, date):
1649 """Set delivery date of message, in seconds since the epoch."""
1650 try:
1651 self._date = float(date)
1652 except ValueError:
1653 raise TypeError("can't convert to float: %s" % date) from None
1654
1655 def get_info(self):
1656 """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