diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/inc/connectivity/dbconversion.hxx | 3 | ||||
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 23 |
2 files changed, 0 insertions, 26 deletions
diff --git a/connectivity/inc/connectivity/dbconversion.hxx b/connectivity/inc/connectivity/dbconversion.hxx index 0f164146fcd1..78df8d04a0ff 100644 --- a/connectivity/inc/connectivity/dbconversion.hxx +++ b/connectivity/inc/connectivity/dbconversion.hxx @@ -115,9 +115,6 @@ namespace dbtools static ::com::sun::star::util::DateTime toDateTime(const ::rtl::OUString& _sSQLDate); - /** return the given DateTime as JDBC compliant 64 bit value - */ - static sal_Int64 toINT64(const ::com::sun::star::util::DateTime& rVal); static sal_Int32 getMsFromTime(const ::com::sun::star::util::Time& rVal); static sal_Int32 toDays(const ::com::sun::star::util::Date& _rVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index bed868ce9ae1..087495d26fc1 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -137,29 +137,6 @@ namespace dbtools } //------------------------------------------------------------------------------ - sal_Int64 DBTypeConversion::toINT64(const DateTime& rVal) - { - // normalize time - sal_Int32 nSeconds = rVal.Seconds + rVal.HundredthSeconds / 100; - sal_Int32 nHundredthSeconds = rVal.HundredthSeconds % 100; - sal_Int32 nMinutes = rVal.Minutes + nSeconds / 60; - nSeconds = nSeconds % 60; - sal_Int32 nHours = rVal.Hours + nMinutes / 60; - nMinutes = nMinutes % 60; - - // assemble time - sal_Int32 nTime = (sal_Int32)(nHundredthSeconds + (nSeconds*100) + (nMinutes*10000) + (nHours*1000000)); - sal_Int32 nDate = ((sal_Int32)(rVal.Day%100)) + (((sal_Int32)(rVal.Month%100))*100) + (((sal_Int32) rVal.Year%10000)*10000); - sal_Int64 nRet; - - nRet = (sal_Int64) nTime; - nRet <<= 32; - nRet += nDate; - - return nRet; - } - - //------------------------------------------------------------------------------ sal_Int32 DBTypeConversion::getMsFromTime(const Time& rVal) { sal_Int32 nHour = rVal.Hours; |