[fpc-devel] New functions for time zone
joshyfun at gmail.com
Wed Jul 11 16:59:35 CEST 2012
Wednesday, July 11, 2012, 4:38:19 PM, you wrote:
>> Anyway the functions are nonsense as they accept a parameter for date
>> to be converted.
MVC> Not if they have the TZOffset parameter as well.
MVC> Without this information they are indeed nonsense.
MVC> That is why I added the parameter.
Well, I undertand it, I was only trying to note that this code:
Will not return correct result in some mini-mili-microseconds slices
two times a year, and as more time passes between the assignements of
A and B (using a time field in databases, it could be days, years,
months...) the chances of a wrong conversion will raise a lot.
MVC> If someone does not supply it, the current one will be taken;
MVC> it is simply meant for current time operations.
MVC> The behaviour will be documented, and there will be a
MVC> remark about the TZ info being time dependent.
MVC> If someone doesn't know what he is doing, that's his problem.
Sure :) I had bitten that stone in the past ;)
More information about the fpc-devel