diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-11 13:35:38 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-01-13 15:24:04 +0000 |
commit | c32a5a3b8e2e3a49ac9f1fd3f2872b00612676b7 (patch) | |
tree | cb2de3eab8dbbcff359d367177d91b67725e1b69 /include/tools/time.hxx | |
parent | 86db1702d72a103ffeafc69dcaa63318539c147a (diff) |
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/time.hxx')
-rw-r--r-- | include/tools/time.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/time.hxx b/include/tools/time.hxx index 140b69ffb4db..1ece6c4c209a 100644 --- a/include/tools/time.hxx +++ b/include/tools/time.hxx @@ -22,6 +22,7 @@ #include <tools/toolsdllapi.h> #include <tools/solar.h> #include <com/sun/star/util/Time.hpp> +#include <com/sun/star/util/DateTime.hpp> /** @WARNING: This class can serve both as wall clock time and time duration, and @@ -69,6 +70,7 @@ public: Time( sal_Int64 _nTime ) { Time::nTime = _nTime; } Time( const tools::Time& rTime ); Time( const ::com::sun::star::util::Time& rTime ); + Time( const ::com::sun::star::util::DateTime& rDateTime ); Time( sal_uInt32 nHour, sal_uInt32 nMin, sal_uInt32 nSec = 0, sal_uInt64 nNanoSec = 0 ); |