TDatime
class description - source file - inheritance tree
public:
TDatime TDatime()
TDatime TDatime(UInt_t time)
TDatime TDatime(TDatime&)
virtual void ~TDatime()
virtual const char* AsString()
TClass* Class()
UInt_t Convert()
virtual void Copy(TDatime& datime)
virtual void FillBuffer(char*& buffer)
UInt_t Get()
virtual Int_t GetDate()
void GetDateTime(UInt_t datetime, Int_t& date, Int_t& time)
virtual Int_t GetTime()
virtual TClass* IsA()
virtual void Print(Option_t* option)
virtual void ReadBuffer(char*& buffer)
virtual void Set()
virtual void Set(Int_t date, Int_t time)
virtual void Set(Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_t Sizeof()
virtual void Streamer(TBuffer& b)
protected:
UInt_t fDatime Date (relative to 1995) + time
TDatime
This class stores the date and time with a precision of one second
in an unsigned 32 bit word. The date is stored with the origin being
the 1st january 1995. See also class TStopwatch.
TDatime()
Create a TDatime and set it to the current time.
const char* AsString() const
Return the date & time as a string (ctime() format).
Copy result because it points to a statically allocated string.
UInt_t Convert() const
Convert fDatime from TDatime format to the standard time_t format.
void Copy(TDatime &datime)
Copy this to datime.
void FillBuffer(char *&buffer)
Encode Date/Time into buffer, used by I/O system.
Int_t GetDate()
Return date in form of 19971224 (i.e. 24/12/1997)
Int_t GetTime()
Return time in form of 123623 (i.e. 12:36:23)
void Print(Option_t *)
Print date and time.
void ReadBuffer(char *&buffer)
Decode Date/Time from output buffer, used by I/O system.
void Set()
Set Date/Time to current time as reported by the system.
Date and Time are encoded into one single unsigned 32 bit word.
Date is stored with the origin being the 1st january 1995.
Time has 1 second precision.
void Set(Int_t date, Int_t time)
Set date and time. Data must be in format 980418 or 19980418 and time in
224512 (second precision). The date must
be >= 950101.
For years >= 2000, date can be given in the form 20001127 or 1001127
internally the date will be converted to 1001127
void Set(Int_t year, Int_t month, Int_t day,
Int_t hour, Int_t min, Int_t sec)
Set date and time. Year may be xx where 95 <= xx <= 99.
The year must be >= 1995.
void Streamer(TBuffer &b)
Stream a object of type TDatime.
void GetDateTime(UInt_t datetime, Int_t &date, Int_t &time)
Static function that returns the date and time
Date is returned in the format 950223 February 23 1995.
Time is returned in the format 102459 10h 24m 59s.
Inline Functions
TDatime TDatime(UInt_t time)
UInt_t Get()
Int_t Sizeof()
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
TDatime TDatime(TDatime&)
void ~TDatime()
Author: Rene Brun 05/01/95
Last update: 2.21/06 15/02/99 13.14.27 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.