Hi,
Somebody now how I can convert TTimeStamp tstart(2011,10,1,00,00,00); in a double object?
this is due that I have:
for(double isec=tstart.GetSec();isec<tend.GetSec();isec++){
And I want to increment isec by 0.1, somebody knows or there is other way to do it?
Thanks
Best
Nicolás
couet
2
This class has GetSec and GetNanoSec. See:
root.cern.ch/root/html/TTimeStamp.html
May be GetNanoSec will give you the precision you need ?
Hi thanks for the reply,
and how I put nanoseconds in TTimeStamp tstart(2011,10,1,00,00,00) ??
Best
Nicolás
couet
4
There is a setter. But i am not sur that’s what you are looking for.
I have:
for(double isec=tstart.GetSec();isec<tend.GetSec();isec++){
TTimeStamp thetime(isec);
cout << thetime <<endl;
one of the output is:
2011-10-01 23:55:54.000000000Z
but the increment is by 1 second and I want for example increment of 0.1 second to then hav as output:
2011-10-01 23:55:54.100000000Z
Best
Nicolás