MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
MAKLogger::DtAbsoluteTime Class Reference

Absolute Time, a particular measured instance in time, could be thought of as a set of relative times which are all relative to a shared time (usually 0). More...

+ Collaboration diagram for MAKLogger::DtAbsoluteTime:

Public Member Functions

 DtAbsoluteTime (double absTime)
 Initialize absolute time to double time value. More...
 
void offset (const DtRelativeTime &relTime)
 Offset absolute time, by relative time amount. More...
 
DtAbsoluteTime operator+ (const DtRelativeTime &relTime) const
 Offset time by relative time, using + and - operators. More...
 
DtAbsoluteTime operator- (const DtRelativeTime &relTime) const
 
DtAbsoluteTimeoperator+= (const DtRelativeTime &relTime)
 
DtAbsoluteTimeoperator-= (const DtRelativeTime &relTime)
 
DtRelativeTime operator- (const DtAbsoluteTime &absTime) const
 
bool operator== (const DtAbsoluteTime &) const
 Check if time are the same. More...
 
bool operator!= (const DtAbsoluteTime &) const
 
bool operator< (const DtAbsoluteTime &) const
 
bool operator> (const DtAbsoluteTime &) const
 
bool operator<= (const DtAbsoluteTime &) const
 
bool operator>= (const DtAbsoluteTime &) const
 
double hours () const
 Get the time in hours. More...
 
double minutes () const
 Get the time in minutes. More...
 
double seconds () const
 Get the time in seconds. More...
 
long hourPart () const
 Get just the hours (0-...) More...
 
long minutePart () const
 Get just the minutes (0-59) More...
 
long secondPart () const
 Get just the second part (0-59) More...
 
long milisecondPart () const
 Get just the milisecond part (0 - 999) More...
 
DtString toString (int percision=0) const
 Creates. More...
 

Static Public Member Functions

static double parseString (const DtString &timeString)
 Parses a string to a double. More...
 

Protected Attributes

double myTime
 

Detailed Description

Absolute Time, a particular measured instance in time, could be thought of as a set of relative times which are all relative to a shared time (usually 0).

Constructor & Destructor Documentation

MAKLogger::DtAbsoluteTime::DtAbsoluteTime ( double  absTime)

Initialize absolute time to double time value.

Exceptions
DtCorruptedStateif time is negative.

Member Function Documentation

long MAKLogger::DtAbsoluteTime::hourPart ( ) const

Get just the hours (0-...)

double MAKLogger::DtAbsoluteTime::hours ( ) const

Get the time in hours.

Warning
value returned contains fractional hour time.
long MAKLogger::DtAbsoluteTime::milisecondPart ( ) const

Get just the milisecond part (0 - 999)

long MAKLogger::DtAbsoluteTime::minutePart ( ) const

Get just the minutes (0-59)

double MAKLogger::DtAbsoluteTime::minutes ( ) const

Get the time in minutes.

Warning
value returned contains fractional minute time.
void MAKLogger::DtAbsoluteTime::offset ( const DtRelativeTime relTime)

Offset absolute time, by relative time amount.

bool MAKLogger::DtAbsoluteTime::operator!= ( const DtAbsoluteTime ) const
DtAbsoluteTime MAKLogger::DtAbsoluteTime::operator+ ( const DtRelativeTime relTime) const

Offset time by relative time, using + and - operators.

Exceptions
DtCorruptedStateif time is negative.
DtAbsoluteTime& MAKLogger::DtAbsoluteTime::operator+= ( const DtRelativeTime relTime)
Exceptions
DtCorruptedStateif time is negative.
DtAbsoluteTime MAKLogger::DtAbsoluteTime::operator- ( const DtRelativeTime relTime) const
Exceptions
DtCorruptedStateif time is negative.
DtRelativeTime MAKLogger::DtAbsoluteTime::operator- ( const DtAbsoluteTime absTime) const
DtAbsoluteTime& MAKLogger::DtAbsoluteTime::operator-= ( const DtRelativeTime relTime)
Exceptions
DtCorruptedStateif time is negative.
bool MAKLogger::DtAbsoluteTime::operator< ( const DtAbsoluteTime ) const
bool MAKLogger::DtAbsoluteTime::operator<= ( const DtAbsoluteTime ) const
bool MAKLogger::DtAbsoluteTime::operator== ( const DtAbsoluteTime ) const

Check if time are the same.

bool MAKLogger::DtAbsoluteTime::operator> ( const DtAbsoluteTime ) const
bool MAKLogger::DtAbsoluteTime::operator>= ( const DtAbsoluteTime ) const
static double MAKLogger::DtAbsoluteTime::parseString ( const DtString &  timeString)
static

Parses a string to a double.

Value is a double rather than an absolute time since absolute time may not be negative.

Exceptions
DtInvalidInputif timeString is not formatted correctly.
DtCorruptedStateif time is negative.
long MAKLogger::DtAbsoluteTime::secondPart ( ) const

Get just the second part (0-59)

double MAKLogger::DtAbsoluteTime::seconds ( ) const

Get the time in seconds.

Warning
value returned contains fractional second time.
DtString MAKLogger::DtAbsoluteTime::toString ( int  percision = 0) const

Creates.

Member Data Documentation

double MAKLogger::DtAbsoluteTime::myTime
protected

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

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)