From 0543e00b88693bde831266ea3a31ec28761fe5f8 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 3 Jun 2018 14:03:29 -0400 Subject: [PATCH] Clarify that year represents the proleptic Gregorian calendar * Uses year{0} and negative years as opposed to AD/BC. --- date.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/date.html b/date.html index 78e58b2..e8bdd0e 100644 --- a/date.html +++ b/date.html @@ -26,7 +26,7 @@

Howard E. Hinnant
-2018-06-02
+2018-06-03

date

@@ -2843,7 +2843,11 @@ constexpr year operator "" _y(unsigned long long y) noexcept; year represents a year in the Gregorian calendar. It shall represent values in the range [min(), max()]. It can be constructed with any int value, which will be subsequently truncated to fit into -year's internal storage. year is equality and less-than +year's internal storage. The year prior to year{1} +is year{0}, and is a leap year. The year prior to +year{0} is year{-1}. This is commonly referred to as the +proleptic Gregorian calendar. +year is equality and less-than comparable, and participates in basic arithmetic with years representing the quantity between any two year's. One can form a year literal with _y. And one can stream out a year for debugging purposes.