Getting unix time in ROOT

Dear reader,

How would I get the unix time in root?

Thanks in advantage,


See, eg, class TTimeStamp


check also
BTW, all functions from
are available from interpereter. For example:

root [0] time_t t
root [1] time(&t)
root [2] timeinfo = localtime ( &t);
root [3] printf ( "Current date and time are: %s", asctime (timeinfo) );
Current date and time are: Thu Jun 17 13:22:55 2004

Regards. Valeriy