[fpc-devel] TDateTime, TDate, TTime types
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Jan 17 13:27:12 CET 2007
On Wed, 17 Jan 2007, Graeme Geldenhuys wrote:
> On 1/17/07, Joost van der Sluis <joost at cnoc.nl> wrote:
>
> > Delphi-help it's the same at TDateTime, so for compatibility it can be
> > added, yes. But I miss the point, why do they exist?
>
> I also expected them to be implemented differently to TDateTime, so
> was surprised to see they are exactly the same as TDateTime. I guess
> the best explanation is like what Marco said - for documentation
> purposes to show what part of the TDateTime is important. For
> example: DateOfBirth: TDate would make sense.
Nonono, this is not good if you want to create someones horoscope ;-)
Seriously:
I think the main reason is Delphi 1 compatibility. Delphi's TDateTime
is based on Variant datetime stuff, which was a Win32 thing if I remember
correctly. It probably obliviated the need for TDate and TTime.
Michael.
More information about the fpc-devel
mailing list