summaryrefslogtreecommitdiffstats
path: root/include/tools/date.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-11 13:35:38 +0200
committerEike Rathke <erack@redhat.com>2015-01-13 15:24:04 +0000
commitc32a5a3b8e2e3a49ac9f1fd3f2872b00612676b7 (patch)
treecb2de3eab8dbbcff359d367177d91b67725e1b69 /include/tools/date.hxx
parentDecrease the formula group size limit for OpenCL to be considered back to 100 (diff)
downloadcore-c32a5a3b8e2e3a49ac9f1fd3f2872b00612676b7.tar.gz
core-c32a5a3b8e2e3a49ac9f1fd3f2872b00612676b7.zip
simplify Date/Time/DateTime conversion code
add constructors to Date/DateTime/Time, that take the css::util counterparts, to simplify code converting between these type Change-Id: I4b03da02c63f65b6ec18cb4d6ecc3859bdef1ff7 Reviewed-on: https://gerrit.libreoffice.org/13855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/tools/date.hxx')
-rw-r--r--include/tools/date.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx
index b0f1612f5bed..0fc4109c42f7 100644
--- a/include/tools/date.hxx
+++ b/include/tools/date.hxx
@@ -21,6 +21,7 @@
#include <tools/toolsdllapi.h>
#include <com/sun/star/util/Date.hpp>
+#include <com/sun/star/util/DateTime.hpp>
#include <sal/log.hxx>
enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
@@ -61,6 +62,7 @@ public:
SAL_WARN_IF(_rDate.Year < 0, "tools.datetime", "Negative year in css::util::Date to ::Date conversion");
init(_rDate.Day, _rDate.Month, _rDate.Year);
}
+ Date( const ::com::sun::star::util::DateTime& _rDateTime );
void SetDate( sal_uInt32 nNewDate ) { nDate = nNewDate; }
sal_uInt32 GetDate() const { return nDate; }