diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-03-17 08:36:26 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-04-18 21:34:46 +0200 |
commit | 9830fd36dbdb72c79703b0c61efc027fba793c5a (patch) | |
tree | 2e9d698e6ca109dc6627adb5c84aa2b635bcfe92 /svl | |
parent | 5aaaf0694b6e3213685563fc3bc90d19b10f5c75 (diff) |
date/time IDL datatypes incompatible change
- nanosecond precision
- signed (allowed negative) year
Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.
Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/dateitem.cxx | 4 | ||||
-rw-r--r-- | svl/source/misc/fstathelper.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx index 5dc90ada2fbd..706d373c5371 100644 --- a/svl/source/items/dateitem.cxx +++ b/svl/source/items/dateitem.cxx @@ -163,7 +163,7 @@ bool SfxDateTimeItem::PutValue( const com::sun::star::uno::Any& rVal, Time( aValue.Hours, aValue.Minutes, aValue.Seconds, - aValue.HundredthSeconds ) ); + aValue.NanoSeconds ) ); return true; } @@ -177,7 +177,7 @@ bool SfxDateTimeItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const { nMemberId &= ~CONVERT_TWIPS; - com::sun::star::util::DateTime aValue( aDateTime.Get100Sec(), + com::sun::star::util::DateTime aValue( aDateTime.GetNanoSec(), aDateTime.GetSec(), aDateTime.GetMin(), aDateTime.GetHour(), diff --git a/svl/source/misc/fstathelper.cxx b/svl/source/misc/fstathelper.cxx index f1692f256e18..498d57bb91c7 100644 --- a/svl/source/misc/fstathelper.cxx +++ b/svl/source/misc/fstathelper.cxx @@ -49,7 +49,7 @@ sal_Bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, *pDate = Date( pDT->Day, pDT->Month, pDT->Year ); if( pTime ) *pTime = Time( pDT->Hours, pDT->Minutes, - pDT->Seconds, pDT->HundredthSeconds ); + pDT->Seconds, pDT->NanoSeconds ); } } catch(...) |