gSystem->Now() and TTime on 32-bit Systems

Hi,
to create a time-stamp I used gSystem->Now() and TTime. However, I noticed that on 32-bit systems this method is completely broken, because the Long_t (which holds the time in milliseconds since 1/1/1995) type is only 32-bit wide and overflows within three days.
Are gSystem->Now() and TTime completely broken and not supported anymore? I think, in this case the documentation of gSystem->Now() and TTime should contain a clear warning, that TTime is depricated.

Cheers,
Jörgen.

Hi Jörgen,

on 32-bit systems gSystem->Now() returns indeed a truncated 32-bit value. I’ll fix this by making the Long64_t on 32-bit systems. However, for time stamps, please use TTimeStamp in the meanwhile.

Cheers, Fons.

Thanks.
I already switched to TTimeStamp with the benefit of having nanosecond precision if needed.

Btw, this issue has now been fixed in the trunk. TTime stores the time in Long64_t.

Cheers, Fons.