NtpSRDate Class Reference

#include <NtpSRDate.h>

List of all members.

Public Member Functions

 NtpSRDate ()
virtual ~NtpSRDate ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const

Public Attributes

UShort_t year
 year, e.g. 1997
Char_t month
 month (1-12)
Char_t day
 day (1-31)
Char_t hour
 hour (0-23)
Char_t minute
 minute (0-59)
Double_t sec
 sec (0-60) (potential for leap seconds)
UInt_t utc
 utc seconds relative to Jan 1, 1970 00:00:00 UTC

Detailed Description

Definition at line 17 of file NtpSRDate.h.


Constructor & Destructor Documentation

NtpSRDate::NtpSRDate (  )  [inline]

Definition at line 21 of file NtpSRDate.h.

00021 : year(0),month(0),day(0),hour(0),minute(0),sec(0),utc(0) {}

virtual NtpSRDate::~NtpSRDate (  )  [inline, virtual]

Definition at line 22 of file NtpSRDate.h.

00022 {}


Member Function Documentation

void NtpSRDate::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 33 of file NtpSRDate.cxx.

References Print().

00033                                                   {
00034   //
00035   //  Purpose:  Print cosmic ray data in form supported by TObject::Print.
00036   //
00037   //  Arguments: option (not used)
00038   //
00039 
00040   Print(std::cout);
00041   return;
00042 
00043 }

std::ostream & NtpSRDate::Print ( std::ostream &  os  )  const [virtual]

Definition at line 19 of file NtpSRDate.cxx.

References day, hour, minute, month, sec, utc, and year.

Referenced by Print().

00019                                                  {
00020   //
00021   //  Purpose:  Print date data on ostream.
00022   //
00023 
00024   os << year << "-" << (UShort_t)month << "-" 
00025      << (UShort_t)day << " " << (UShort_t)hour << ":" << (UShort_t)minute 
00026      << ":" << sec << " utc(sec since 1970/01/01) " 
00027      << utc << endl;
00028  
00029   return os;
00030 
00031 }


Member Data Documentation

hour (0-23)

Definition at line 36 of file NtpSRDate.h.

Referenced by NtpSRModule::FillNtpEventSummary(), NtpEMModule::FillNtpSummary(), and Print().

minute (0-59)

Definition at line 37 of file NtpSRDate.h.

Referenced by NtpSRModule::FillNtpEventSummary(), NtpEMModule::FillNtpSummary(), and Print().

Double_t NtpSRDate::sec

sec (0-60) (potential for leap seconds)

Definition at line 38 of file NtpSRDate.h.

Referenced by NtpSRModule::FillNtpEventSummary(), NtpEMModule::FillNtpSummary(), and Print().

UShort_t NtpSRDate::year

The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1