I don't have access right now, but I suspect TimeToStr takes a TDateTime parameter **. So you are passing a parameter with the time element set to zero (and the date 600 days after 30/12/1899).
To pass a time you would need the parameter to contain a fractional amount (e.g. 43,620.0069444444 for ten minutes after midnight today.)
Cheers, Paul
** Confirmed!
BTW, the fractional amount is your time in minutes divided by the number of minutes per day [ i.e. 10 / (24*60) ].
Comments
To pass a time you would need the parameter to contain a fractional amount (e.g. 43,620.0069444444 for ten minutes after midnight today.)
Cheers, Paul
** Confirmed!
BTW, the fractional amount is your time in minutes divided by the number of minutes per day [ i.e. 10 / (24*60) ].