Skip to content

Commit 0a94c36

Browse files
committed
Add note to RFC3339 formatting item
1 parent d1264d5 commit 0a94c36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/format/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ pub enum Fixed {
242242
/// RFC 2822 date and time syntax. Commonly used for email and MIME date and time.
243243
RFC2822,
244244
/// RFC 3339 & ISO 8601 date and time syntax.
245+
///
246+
/// Note that if the year of the `DateTime` is outside of the range 0 through 9999 then the date
247+
/// while be formatted as an expanded representation according to ISO 8601. These dates are not
248+
/// supported by, and incompatible with, RFC 3339.
245249
RFC3339,
246250

247251
/// Internal uses only.

0 commit comments

Comments
 (0)