Article View: borland.public.cppbuilder.nativeapi
Article #7583Re: TDateTime difference
From: Keith
Date: Fri, 21 Jan 2005 04:56
Date: Fri, 21 Jan 2005 04:56
17 lines
1213 bytes
1213 bytes
Danid wrote: > How can I calculate the difference between two dates and have the results in hours? > Example: > > d1 = 12-04-2004 21:10:00 > d2 = 12-04-2004 23:40:00 > > difference is 2.5 > Thanks, Have you looked at the Help for TDateTime? Maybe take a look at the .val property of the object. keith
Technical Details
Message-ID:
<41F08B92.80A9AF93@sbcglobal.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41f03f28$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a03d5ca673360fd6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <41F08B92.80A9AF93@sbcglobal.net> Date: Thu, 20 Jan 2005 22:56:50 -0600 From: Keith <kdopson@sbcglobal.net> X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: TDateTime difference References: <41f03f28$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.71.227.84 X-Trace: newsgroups.borland.com 1106283322 65.71.227.84 (20 Jan 2005 20:55:22 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail