Logo coherent WaveBurst  
Library Reference Guide
Logo
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
wat::Time Class Reference

Definition at line 83 of file time.hh.

Public Member Functions

 Time (INT_4S sec=0, INT_4U nsec=0)
 
 Time (TString date)
 
 Time (Time &time)
 
 Time (double dtime)
 
TString GetDateString ()
 
int GetDay ()
 
int GetDayOfYear ()
 
double GetDouble ()
 
INT_4S GetGPS ()
 
int GetHour ()
 
double GetJulianDate ()
 
int GetJulianDay ()
 
int GetLeapSecs ()
 
int GetMinute ()
 
double GetModJulianDate ()
 
int GetModJulianDay ()
 
int GetMonth ()
 
INT_4U GetNSec ()
 
INT_4S GetSec ()
 
int GetSecond ()
 
int GetYear ()
 
int GpsToGpsLeaps (int gps)
 
int GpsToGpsLeaps ()
 
int GpsToTaiLeaps (int gps)
 
int GpsToTaiLeaps ()
 
void GpsToUnix ()
 
int GpsToUnixTime ()
 
bool operator!= (Time &time)
 
Timeoperator*= (double &d)
 
Timeoperator+= (Time &time)
 
Timeoperator-= (Time &time)
 
double operator/ (Time &time)
 
Timeoperator/= (double &d)
 
bool operator< (Time &time)
 
bool operator<= (Time &time)
 
Timeoperator= (Time &time)
 
bool operator== (Time &time)
 
bool operator> (Time &time)
 
bool operator>= (Time &time)
 
void Print ()
 
void PrintLeapSecs ()
 
void SetDate (int ss, int mm, int hh, int DD, int MM, int YY, int nsec=0)
 
void SetDateString (TString date)
 
void SetDay (unsigned int day)
 
void SetDouble (double dt)
 
void SetHour (unsigned int hour)
 
void SetMinute (unsigned int min)
 
void SetMonth (unsigned int month)
 
INT_4U SetNSec (INT_4U nsec)
 
INT_4S SetSec (INT_4S s)
 
void SetSecond (unsigned int sec)
 
void SetString (char *date, int nsec=0)
 
void SetYear (unsigned int year)
 
void UnixToGps ()
 
int UnixToGpsLeaps (int unix_time)
 
int UnixToGpsLeaps ()
 
int UnixToTaiLeaps (int unix_time)
 
int UnixToTaiLeaps ()
 

Private Member Functions

void Error (char *msg)
 

Private Attributes

INT_4U mNSec
 
INT_4S mSec
 

Friends

istream & operator>> (istream &, Time &)
 

#include <time.hh>

Constructor & Destructor Documentation

◆ Time() [1/4]

wat::Time::Time ( INT_4S  sec = 0,
INT_4U  nsec = 0 
)
explicit

Definition at line 44 of file time.cc.

◆ Time() [2/4]

wat::Time::Time ( TString  date)
inline

Definition at line 90 of file time.hh.

◆ Time() [3/4]

wat::Time::Time ( Time time)

Definition at line 68 of file time.cc.

◆ Time() [4/4]

wat::Time::Time ( double  dtime)

Definition at line 56 of file time.cc.

Member Function Documentation

◆ Error()

void wat::Time::Error ( char *  msg)
inlineprivate

Definition at line 249 of file time.hh.

◆ GetDateString()

TString wat::Time::GetDateString ( )

Definition at line 461 of file time.cc.

◆ GetDay()

int wat::Time::GetDay ( )
inline

Definition at line 186 of file time.hh.

◆ GetDayOfYear()

int wat::Time::GetDayOfYear ( )
inline

Definition at line 174 of file time.hh.

◆ GetDouble()

double wat::Time::GetDouble ( )

Definition at line 320 of file time.cc.

◆ GetGPS()

INT_4S wat::Time::GetGPS ( )
inline

Definition at line 125 of file time.hh.

◆ GetHour()

int wat::Time::GetHour ( )
inline

Definition at line 190 of file time.hh.

◆ GetJulianDate()

double wat::Time::GetJulianDate ( )

Definition at line 523 of file time.cc.

◆ GetJulianDay()

int wat::Time::GetJulianDay ( )
inline

Definition at line 213 of file time.hh.

◆ GetLeapSecs()

int wat::Time::GetLeapSecs ( )
inline

Definition at line 203 of file time.hh.

◆ GetMinute()

int wat::Time::GetMinute ( )
inline

Definition at line 194 of file time.hh.

◆ GetModJulianDate()

double wat::Time::GetModJulianDate ( )

Definition at line 591 of file time.cc.

◆ GetModJulianDay()

int wat::Time::GetModJulianDay ( )
inline

Definition at line 214 of file time.hh.

◆ GetMonth()

int wat::Time::GetMonth ( )
inline

Definition at line 182 of file time.hh.

◆ GetNSec()

INT_4U wat::Time::GetNSec ( )

Definition at line 654 of file time.cc.

◆ GetSec()

INT_4S wat::Time::GetSec ( )

Definition at line 646 of file time.cc.

◆ GetSecond()

int wat::Time::GetSecond ( )
inline

Definition at line 198 of file time.hh.

◆ GetYear()

int wat::Time::GetYear ( )
inline

Definition at line 178 of file time.hh.

◆ GpsToGpsLeaps() [1/2]

int wat::Time::GpsToGpsLeaps ( int  gps)

Definition at line 610 of file time.cc.

◆ GpsToGpsLeaps() [2/2]

int wat::Time::GpsToGpsLeaps ( )
inline

Definition at line 220 of file time.hh.

◆ GpsToTaiLeaps() [1/2]

int wat::Time::GpsToTaiLeaps ( int  gps)
inline

Definition at line 223 of file time.hh.

◆ GpsToTaiLeaps() [2/2]

int wat::Time::GpsToTaiLeaps ( )
inline

Definition at line 225 of file time.hh.

◆ GpsToUnix()

void wat::Time::GpsToUnix ( )
inline

Definition at line 237 of file time.hh.

◆ GpsToUnixTime()

int wat::Time::GpsToUnixTime ( )
inline

Definition at line 241 of file time.hh.

◆ operator!=()

bool wat::Time::operator!= ( Time time)

Definition at line 208 of file time.cc.

◆ operator*=()

Time & wat::Time::operator*= ( double &  d)

Definition at line 133 of file time.cc.

◆ operator+=()

Time & wat::Time::operator+= ( Time time)

Definition at line 98 of file time.cc.

◆ operator-=()

Time & wat::Time::operator-= ( Time time)

Definition at line 115 of file time.cc.

◆ operator/()

double wat::Time::operator/ ( Time time)

Definition at line 169 of file time.cc.

◆ operator/=()

Time & wat::Time::operator/= ( double &  d)

Definition at line 155 of file time.cc.

◆ operator<()

bool wat::Time::operator< ( Time time)

Definition at line 217 of file time.cc.

◆ operator<=()

bool wat::Time::operator<= ( Time time)

Definition at line 190 of file time.cc.

◆ operator=()

Time & wat::Time::operator= ( Time time)

Definition at line 83 of file time.cc.

◆ operator==()

bool wat::Time::operator== ( Time time)

Definition at line 181 of file time.cc.

◆ operator>()

bool wat::Time::operator> ( Time time)

Definition at line 231 of file time.cc.

◆ operator>=()

bool wat::Time::operator>= ( Time time)

Definition at line 199 of file time.cc.

◆ Print()

void wat::Time::Print ( )

Definition at line 511 of file time.cc.

◆ PrintLeapSecs()

void wat::Time::PrintLeapSecs ( )
inline

Definition at line 204 of file time.hh.

◆ SetDate()

void wat::Time::SetDate ( int  ss,
int  mm,
int  hh,
int  DD,
int  MM,
int  YY,
int  nsec = 0 
)

Definition at line 420 of file time.cc.

◆ SetDateString()

void wat::Time::SetDateString ( TString  date)

Definition at line 331 of file time.cc.

◆ SetDay()

void wat::Time::SetDay ( unsigned int  day)
inline

Definition at line 159 of file time.hh.

◆ SetDouble()

void wat::Time::SetDouble ( double  dt)

Definition at line 311 of file time.cc.

◆ SetHour()

void wat::Time::SetHour ( unsigned int  hour)
inline

Definition at line 162 of file time.hh.

◆ SetMinute()

void wat::Time::SetMinute ( unsigned int  min)
inline

Definition at line 165 of file time.hh.

◆ SetMonth()

void wat::Time::SetMonth ( unsigned int  month)
inline

Definition at line 156 of file time.hh.

◆ SetNSec()

INT_4U wat::Time::SetNSec ( INT_4U  nsec)
inline

Definition at line 139 of file time.hh.

◆ SetSec()

INT_4S wat::Time::SetSec ( INT_4S  s)
inline

Definition at line 136 of file time.hh.

◆ SetSecond()

void wat::Time::SetSecond ( unsigned int  sec)
inline

Definition at line 168 of file time.hh.

◆ SetString()

void wat::Time::SetString ( char *  date,
int  nsec = 0 
)

Definition at line 373 of file time.cc.

◆ SetYear()

void wat::Time::SetYear ( unsigned int  year)
inline

Definition at line 153 of file time.hh.

◆ UnixToGps()

void wat::Time::UnixToGps ( )
inline

Definition at line 231 of file time.hh.

◆ UnixToGpsLeaps() [1/2]

int wat::Time::UnixToGpsLeaps ( int  unix_time)

Definition at line 617 of file time.cc.

◆ UnixToGpsLeaps() [2/2]

int wat::Time::UnixToGpsLeaps ( )
inline

Definition at line 221 of file time.hh.

◆ UnixToTaiLeaps() [1/2]

int wat::Time::UnixToTaiLeaps ( int  unix_time)
inline

Definition at line 224 of file time.hh.

◆ UnixToTaiLeaps() [2/2]

int wat::Time::UnixToTaiLeaps ( )
inline

Definition at line 226 of file time.hh.

Friends And Related Function Documentation

◆ operator>>

istream& operator>> ( istream &  ,
Time  
)
friend

Member Data Documentation

◆ mNSec

INT_4U wat::Time::mNSec
private

Definition at line 252 of file time.hh.

◆ mSec

INT_4S wat::Time::mSec
private

Definition at line 251 of file time.hh.


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