[Solved] Time seconds function - two decimals output

[Solved] Time seconds function - two decimals output

Posted: Fri Apr 21, 2017 4:14 pm

by Ponny

Meow

About time functions. I remember in Word Basic from MS Word 6, function Second returns seconds and 100 miliseconds and 10 miliseconds. Something about this example: "3,14". Seconds of corse. From input variable with serial date&time.

Now in OpenOffice Basic (OpenOffice 3.1.2) function Second returns only seconds without decimals. Is there any hope to get time - seconds with two decimals? Maybe 3?

Thankyou for any good news about this But if this is not possible, then I apologize for stupid question

Ponny

Re: Time seconds function - two decimals output

Posted: Fri Apr 21, 2017 9:22 pm

by Zizi64

The Cell Function NOW() supports the fractions of the seconds. You can calculate the seconds and the fraction part of the seconds by a macro or by some cell functions.

Note: The resolution of the StarBasic function NOW() is 1 second. There is no fraction.