Guillem Jover dixit: >Your version seems to leak the buffer every time it's getting called. Hm, indeed. Damn. Thanks for pointing this out. //mirabilos -- “It is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch.” -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2