Today's Learning---
Today's Learning---
procedure ReplaceTime( var DateTimeVar : TDateTime; const NewTimeValue : TDateTime ) ;
replaces the time part of var DateTimevar with Time Part of NewTimeValue. Const NewTimeValue remains unaffected.
procedure ReplaceTime( var DateTimeVar : TDateTime; const NewTimeValue : TDateTime ) ;
replaces the time part of var DateTimevar with Time Part of NewTimeValue. Const NewTimeValue remains unaffected.
I am trying to work out (in my head) what would/should happen if you want to pass in a negative NewTime...
ReplyDeleteA slight paradox that you can go thousands of years forwards, but not further back than 0BC.
ReplyDeleteAlso, there is something weird about going forwards as well...
FormatDateTime('yyyy.mm.dd', 1000000000.0) = '52831.01.02'
FormatDateTime('yyyy.mm.dd', 1500000000.0) = '45528.07.04'
FormatDateTime('yyyy.mm.dd', 10000000000.0) = Integer overflow
Thankfully I will not be around to have to fix that issue :D
ReplyDelete