[DUG] a Bit stumpted

Myles Penlington myles at ams.co.nz
Mon Jun 18 09:29:10 NZST 2007


J,

The other alternative is to change the values. Looks like you are
talking about a duration.  i.e. translate the date and time into a
duration in seconds, minutes or Hours (decimal) and plot that instead.

 

Myles.

 

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Sunday, 17 June 2007 11:53
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] a Bit stumpted

 

HI All.

I am a but stumped on something here.

 

I have a query they calculates durations from a database, then plots
them on TeeChart.

The problem I have is, that on many occasions, the durations add up to
over 24hrs, so when I plot them, the data is not quite as expected.

What happens is, if say a duration is 38hrs, the left hand axis shows
31/12/1899 14:xx:xx   xx being a value.

Cleary this is UGLY and is of very little use to the user.

Idealy, I would like to just plot it as say 38:xx:xx or even   1 day
14:xx:xx 

 

Has anyone else come across this before? How did you handle it?

 

Thanks, Jeremy

 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.15/847 - Release Date:
12/06/2007 21:42



Attention:
This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070618/51eb883a/attachment-0001.html


More information about the Delphi mailing list