summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/CommonTools.cxx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-06-27 09:28:48 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-28 12:25:55 +0000
commitd6bba47bcb3030163fffd0b8f01c03d038989dea (patch)
tree631211314f3140849f5fdff9735abeb9bccc7d0e /connectivity/source/commontools/CommonTools.cxx
parentf042e22f535e3143332eb788f908f06900eeb40d (diff)
remove ::connectivity::to(Date)?(Time)?String; same as DBTypeConversion::*
Change-Id: I5f2ef1ecff7e2071b55c27b9dc60e7d92950435c Reviewed-on: https://gerrit.libreoffice.org/4563 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'connectivity/source/commontools/CommonTools.cxx')
-rw-r--r--connectivity/source/commontools/CommonTools.cxx44
1 files changed, 0 insertions, 44 deletions
diff --git a/connectivity/source/commontools/CommonTools.cxx b/connectivity/source/commontools/CommonTools.cxx
index 48357f28999f..414987ee56b7 100644
--- a/connectivity/source/commontools/CommonTools.cxx
+++ b/connectivity/source/commontools/CommonTools.cxx
@@ -111,50 +111,6 @@ namespace connectivity
return ( *pStr == 0 ) && ( *pWild == 0 );
}
//------------------------------------------------------------------
- OUString toDateString(const ::com::sun::star::util::Date& rDate)
- {
- sal_Char s[11];
- snprintf(s,
- sizeof(s),
- "%04d-%02d-%02d",
- (int)rDate.Year,
- (int)rDate.Month,
- (int)rDate.Day);
- s[10] = 0;
- return OUString::createFromAscii(s);
- }
-
- //------------------------------------------------------------------
- OUString toTimeString(const ::com::sun::star::util::Time& rTime)
- {
- sal_Char s[9];
- snprintf(s,
- sizeof(s),
- "%02d:%02d:%02d",
- (int)rTime.Hours,
- (int)rTime.Minutes,
- (int)rTime.Seconds);
- s[8] = 0;
- return OUString::createFromAscii(s);
- }
-
- //------------------------------------------------------------------
- OUString toDateTimeString(const ::com::sun::star::util::DateTime& rDateTime)
- {
- sal_Char s[20];
- snprintf(s,
- sizeof(s),
- "%04d-%02d-%02d %02d:%02d:%02d",
- (int)rDateTime.Year,
- (int)rDateTime.Month,
- (int)rDateTime.Day,
- (int)rDateTime.Hours,
- (int)rDateTime.Minutes,
- (int)rDateTime.Seconds);
- s[19] = 0;
- return OUString::createFromAscii(s);
- }
-
#ifdef SOLAR_JAVA
::rtl::Reference< jvmaccess::VirtualMachine > getJavaVM(const Reference<XComponentContext >& _rxContext)
{