Sovite.Message.Date (sovite v0.2.0)

Copy Markdown View Source

RFC 5322 §3.3 date-time formatting, as used in Date: and Received:.

Summary

Functions

Formats datetime with its UTC offset.

Functions

format(datetime)

@spec format(DateTime.t()) :: String.t()

Formats datetime with its UTC offset.

iex> Sovite.Message.Date.format(~U[2026-10-04 12:00:00Z])
"Sun, 4 Oct 2026 12:00:00 +0000"