[DUG] DateTimePicker

David Brennan dugdavid at dbsolutions.co.nz
Wed Jun 30 12:28:39 NZST 2010


Are you going to claim copyright on that phrase or is it in the public
domain for reuse ;-)

 

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Jolyon Smith
Sent: Wednesday, 30 June 2010 11:55 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] DateTimePicker

 

Glad my observations helped, but I'm not especially familiar with
TDateTimePicker.   I was simply curious about the behaviour you described so
had a quick (2-3 mins, at the most) look at the VCL source for the control,
looking for code that changed the internal fDateTime value directly or
indirectly and found the behaviours that I then described.

 

Use the source, Luke.

The source will be with you.  Always.

etc etc

 

I then deserialised a TConsciousnessStream as I considered how I'd go about
mitigating that behaviour if I were writing code affected by it.

 

J

 

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of John Bird
Sent: Wednesday, 30 June 2010 11:22
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] DateTimePicker

 

It looks like D5 does not have DateOf, but the Trunc function works fine
(with a comment of why).   Thanks for Jolyon for the description of the
oddities of this control - it looks like he has been bitten by this oddity
and knows it well!

 

John

 

DateOf() is nothing more than a wrapper for Trunc(TheDate)  but I like to
use it becuase then you know what its doing :-)  BTW TimeOf(TheDate) returns
only the time portion of a date/time  and is just a wrapper for
Frac(TheDate). Once agai I use this so I know what the code is doing.

Jeremy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100630/84df7915/attachment.html 


More information about the Delphi mailing list