diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-05-06 06:07:18 +1000 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-07 08:30:28 +0200 |
commit | e2b72039c619b64235fc7cbf12ac40b6b968f984 (patch) | |
tree | 7a9c85bdb985983130319dfffd0610c5c72c45fe /tools/source/datetime | |
parent | 16c6c05fbeeffe06d887b29eb52605cd4292bbdd (diff) |
tools: date unit tests
Change-Id: I2b3eaf74173f7f456f04c734dfb7c05c95802809
Reviewed-on: https://gerrit.libreoffice.org/53895
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source/datetime')
-rw-r--r-- | tools/source/datetime/datetimeutils.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/source/datetime/datetimeutils.cxx b/tools/source/datetime/datetimeutils.cxx index bc1747e670a1..4c3b28d49dc6 100644 --- a/tools/source/datetime/datetimeutils.cxx +++ b/tools/source/datetime/datetimeutils.cxx @@ -74,3 +74,9 @@ OString DateToDDMMYYYYOString( const Date& rDate ) return aBuffer.makeStringAndClear(); } + +std::ostream& operator<<(std::ostream& os, const Date& rDate) +{ + os << rDate.GetYear() << "-" << rDate.GetMonth() << "-" << rDate.GetDay(); + return os; +} |