Ignore:
Timestamp:
02/28/07 13:34:10 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r7550 r8337  
    108108// --------------------------------------------------------------------------
    109109//
     110// Constructor. Calls Set(y, m, d, h, min, s, ms, ns).
     111// To check validity test for (*this)==MTime()
     112//
     113MTime::MTime(UShort_t y, Byte_t m, Byte_t d, Byte_t h, Byte_t min, Byte_t s, UShort_t ms, UInt_t ns)
     114{
     115    Set(y, m, d, h, min, s, ms, ns);
     116}
     117
     118// --------------------------------------------------------------------------
     119//
    110120// Return date as year(y), month(m), day(d)
    111121//
     
    218228{
    219229    return (ULong_t)((GetMjd()-49718)*kDay);
     230}
     231
     232// --------------------------------------------------------------------------
     233//
     234// Return a time which is expressed in seconds since 01/01/1970 0:00h
     235// This is compatible with root's definition used in the constructor of
     236// TDatime.
     237//
     238TDatime MTime::GetRootDatime() const
     239{
     240    return TDatime((UInt_t)((GetMjd()-40587)*kDay/1000));
    220241}
    221242
Note: See TracChangeset for help on using the changeset viewer.