Skip to content

Commit 75b9874

Browse files
committed
Correct documentation for Numeric year formatting items
1 parent c282160 commit 75b9874

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/format/mod.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,22 @@ pub enum Numeric {
102102
/// Full Gregorian year (FW=4, PW=∞).
103103
/// May accept years before 1 BCE or after 9999 CE, given an initial sign (+/-).
104104
Year,
105-
/// Gregorian year divided by 100 (century number; FW=PW=2). Implies the non-negative year.
105+
/// Gregorian year divided by 100 (century number; FW=2, PW=∞).
106+
/// Parsing supports only positive centuries.
107+
/// Formatting applies Euclidean division, year -1 is in century -1.
106108
YearDiv100,
107109
/// Gregorian year modulo 100 (FW=PW=2). Cannot be negative.
110+
/// Formatting applies Euclidean modulus, year -1 is formatted as 99.
108111
YearMod100,
109112
/// Year in the ISO week date (FW=4, PW=∞).
110113
/// May accept years before 1 BCE or after 9999 CE, given an initial sign.
111114
IsoYear,
112-
/// Year in the ISO week date, divided by 100 (FW=PW=2). Implies the non-negative year.
115+
/// Year in the ISO week date, divided by 100 (FW=2, PW=∞).
116+
/// Parsing supports only positive centuries.
117+
/// Formatting applies Euclidean division, year -1 is in century -1.
113118
IsoYearDiv100,
114-
/// Year in the ISO week date, modulo 100 (FW=PW=2). Cannot be negative.
119+
/// Year in the ISO week date, modulo 100 (FW=PW=2).
120+
/// Formatting applies Euclidean modulus, year -1 is formatted as 99.
115121
IsoYearMod100,
116122
/// Month (FW=PW=2).
117123
Month,

0 commit comments

Comments
 (0)