I am using C++Builder 2009. I have a start date 2000/01/01
and a count of seconds from this timestamp. I want to create a TDateTime
with this date. I create a start point TDateTime
and add seconds.
TDateTime dt(2000,1,1,0,0,0,0);
AnsiString sdt = "";
DateTimeToString(sdt, "yyyy/mm/dd hh:nn:ss", dt);
closeDateTime = dt;
closeDateTime = IncSecond(closeDateTime,footer->secondsFromZeroDateOfFinishDocument);
DateTimeToString(sdt, "yyyy/mm/dd hh:nn:ss", closeDateTime);
After add more than 650M seconds, the TDateTime
increases by only 23 days, but should increase by more than 20 years. See screenshots below.
How can I add this number of seconds to a TDateTime
?
I found some work around. I add days, and then add rest of seconds. I thik this is bug in RTL but I can't upgrade this codebase.