From 09c3b8ab70b115aaea8fe68557da2cc5edde4181 Mon Sep 17 00:00:00 2001 From: Jacobo Aragunde PĂ©rez Date: Fri, 7 Mar 2014 13:19:22 +0100 Subject: unotools: extractDate and extractTime functions Added a pair of functions to split a UNO DateTime object into the corresponding Date and Time objects. Change-Id: I6bf31d83b3843a9482d6bf538a5dd7130c2c7046 --- include/unotools/datetime.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/unotools') diff --git a/include/unotools/datetime.hxx b/include/unotools/datetime.hxx index 3887df2df5e2..7611299e38e2 100644 --- a/include/unotools/datetime.hxx +++ b/include/unotools/datetime.hxx @@ -44,6 +44,9 @@ namespace utl UNOTOOLS_DLLPUBLIC void typeConvert(const DateTime& _rDateTime, starutil::DateTime& _rOut); UNOTOOLS_DLLPUBLIC void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut); + UNOTOOLS_DLLPUBLIC void extractDate(const starutil::DateTime& _rDateTime, starutil::Date& _rOut); + UNOTOOLS_DLLPUBLIC void extractTime(const starutil::DateTime& _rDateTime, starutil::Time& _rOut); + UNOTOOLS_DLLPUBLIC ::rtl::OUString toISO8601(const starutil::DateTime& _rDateTime); UNOTOOLS_DLLPUBLIC bool ISO8601parseDateTime(const ::rtl::OUString &i_rIn, starutil::DateTime& o_rDateTime); UNOTOOLS_DLLPUBLIC bool ISO8601parseDate(const ::rtl::OUString &i_rIn, starutil::Date& o_rDate); -- cgit v1.2.3