Kaydet (Commit) e436c491 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fixup nanosecond precision

This was broken before...
Time used to take centiseconds, so the nanoseconds should have been *divided* by 10^7 for conversion.
Now Time takes straight nanoseconds, so no conversion necessary.

Change-Id: Ibac3eeca7020c5d8c5ff4be3e7617fac26ee8180
üst 4108f285
...@@ -3095,7 +3095,7 @@ RTLFUNC(FileDateTime) ...@@ -3095,7 +3095,7 @@ RTLFUNC(FileDateTime)
oslDateTime aDT; oslDateTime aDT;
osl_getDateTimeFromTimeValue( &aTimeVal, &aDT ); osl_getDateTimeFromTimeValue( &aTimeVal, &aDT );
aTime = Time( aDT.Hours, aDT.Minutes, aDT.Seconds, 10000000*aDT.NanoSeconds ); aTime = Time( aDT.Hours, aDT.Minutes, aDT.Seconds, aDT.NanoSeconds );
aDate = Date( aDT.Day, aDT.Month, aDT.Year ); aDate = Date( aDT.Day, aDT.Month, aDT.Year );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment