From 1eb3174428d8745dd06b645aefb3403445d74d06 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:35:00 +0100 Subject: [PATCH] docs: document century cutoff for %y --- src/format/strftime.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/format/strftime.rs b/src/format/strftime.rs index 555e36f9c0..e446c68c02 100644 --- a/src/format/strftime.rs +++ b/src/format/strftime.rs @@ -99,6 +99,8 @@ Notes: [^1]: `%C`, `%y`: This is floor division, so 100 BCE (year number -99) will print `-1` and `99` respectively. + For `%y`, values greater or equal to 70 are interpreted as being in the 20th century, + values smaller than 70 in the 21st century. [^2]: `%U`: Week 1 starts with the first Sunday in that year.