[ROOT] Feature request: Operators for TDatime

From: George Heintzelman (gah@bnl.gov)
Date: Fri Sep 08 2000 - 22:41:49 MEST


Hi,

It would be really nice for some purposes if the TDatime class had a 
few arithmetic operators (presumably in units of seconds, though I 
don't really case as long as it's documented):

TDatime x; 
x.Set(); // x is now.
x += 60; // Add a minute to x;
TDatime earlier = x - 3600; // Earlier is an hour or so ago.

Since you can't easily create a TDatime from a Unix time_t (you can go 
the other way), even converting to Unix and then back doesn't work...

George Heintzelman
gah@bnl.gov



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET