Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 02/05/11 13:04, rdb wrote:
Hi,

Is there a straightforward way in Calc to calculate negative time values? By
default, this does not appear to be possible, e.g. 00:00:00 - 02:00:00 is
always 22:00:00, not -02:00:00.

rdb--
View this message in context: 
http://nabble.documentfoundation.org/Negative-time-values-tp2888622p2888622.html
Sent from the Users mailing list archive at Nabble.com.


Hi rdb,

My system works as expected and as you described.

I had two cells. Formatted each as time format then entered the values you specified. I created a formula Cell01-Cell02 or 00;00:00 - 02:00:00 and got the answer -02:00:00 not 22:00:00.

The only way I can reproduce your effect is to enter the following formula in a field =TIME(0,0,0)-TIME(2,0,0). If I actually type =00:00:00-02:00:00 I get -02:00:00, if I put the two TIME() functions in separate fields I get -02:00:00.

I suppose for clarity it would be best to separate 'duration' from 'time-of-day' and treating them separately, depending on your needs.

Summary: Put you values in separate fields and use formulas to add and subtract values.

--
Cheers Simon

   Simon Cropper
   Principal Consultant
   Botanicus Australia Pty Ltd
   PO Box 160, Sunshine, VIC
   W: www.botanicusaustralia.com.au

--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.