summaryrefslogtreecommitdiffstats
path: root/include/tools/date.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-04-28 17:21:30 +0200
committerEike Rathke <erack@redhat.com>2017-04-28 17:22:06 +0200
commit0e65e82238c8ded807d022234029163dc5b67f0a (patch)
tree132fdfe94b9eefe37404d84d4494eb1c6cc3ae84 /include/tools/date.hxx
parentAdd unit tests for Date::Normalize() (diff)
downloadcore-0e65e82238c8ded807d022234029163dc5b67f0a.tar.gz
core-0e65e82238c8ded807d022234029163dc5b67f0a.zip
Adapt documentation to reality
Change-Id: Ic76cdff3c95e68e91700ca7143e8aa8c908ed56e
Diffstat (limited to 'include/tools/date.hxx')
-rw-r--r--include/tools/date.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx
index bab1efd833f8..600c4f90a562 100644
--- a/include/tools/date.hxx
+++ b/include/tools/date.hxx
@@ -164,8 +164,8 @@ public:
/** If the represented date is valid (1<=month<=12, 1<=day<=(28,29,30,31)
depending on month/year) AND is of the Gregorian calendar (1582-10-15
- <= date) (AND implicitly date <= 9999-12-31 due to internal
- representation) */
+ <= date)
+ */
bool IsValidAndGregorian() const;
/** If the represented date is valid (1<=month<=12, 1<=day<=(28,29,30,31)
@@ -175,8 +175,8 @@ public:
/** Normalize date, invalid day or month values are adapted such that they
carry over to the next month or/and year, for example 1999-02-32
becomes 1999-03-04, 1999-13-01 becomes 2000-01-01, 1999-13-42 becomes
- 2000-02-11. Truncates at 9999-12-31, 0000-00-x will yield the
- normalized value of 0000-01-max(1,(x-31))
+ 2000-02-11. Truncates at -32768-01-01 or 32767-12-31, 0001-00-x will
+ yield the normalized value of -0001-12-x
This may be necessary after Date ctors or if the SetDate(), SetDay(),
SetMonth(), SetYear() methods set individual non-matching values.