Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ to_rfc822_string
Method
to_rfc822_string
src/pendulum/datetime.py:406–410 ·
view source on GitHub ↗
Format the instance as RFC 822.
(self)
Source
from the content-addressed store, hash-verified
404
return
string
405
406
def
to_rfc822_string(self) -> str:
407
""
"
408
Format the instance
as
RFC 822.
409
""
"
410
return
self._to_string(
"rfc822"
)
411
412
def
to_rfc850_string(self) -> str:
413
""
"
Callers
1
test_to_rfc822_string
Function · 0.80
Calls
1
_to_string
Method · 0.95
Tested by
1
test_to_rfc822_string
Function · 0.64