Getting unix time in ROOT

Dear reader,

How would I get the unix time in root?

Thanks in advantage,

Ytsen.

See, eg, class TTimeStamp

Rene

Hi,
check also root.cern.ch/root/htmldoc/TDatime.html
BTW, all functions from cplusplus.com/ref/ctime/
are available from interpereter. For example:

root [0] time_t t
root [1] time(&t)
(long)1087478306
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