odbc::Time Class Reference

Inheritance diagram for odbc::Time:

odbc::Timestamp odbc::Timestamp List of all members.

Detailed Description

An SQL TIME.

Definition at line 425 of file types.h.

Public Member Functions

int getHour () const
 Gets the hour of this time.
int getHour () const
 Gets the hour of this time.
int getMinute () const
 Gets the minute of this time.
int getMinute () const
 Gets the minute of this time.
int getSecond () const
 Gets the second of this time.
int getSecond () const
 Gets the second of this time.
std::time_t getTime () const
 Returns the time_t value of 1970-01-01 at this time.
std::time_t getTime () const
 Returns the time_t value of 1970-01-01 at this time.
Timeoperator= (const Time &t)
 Assignment operator.
Timeoperator= (const Time &t)
 Assignment operator.
void parse (const ODBCXX_STRING &str)
 Sets this time from a string in the HH:MM:SS format.
void parse (const ODBCXX_STRING &str)
 Sets this time from a string in the HH:MM:SS format.
void setHour (int h)
 Sets the hour of this time.
void setHour (int h)
 Sets the hour of this time.
void setMinute (int m)
 Sets the minute of this time.
void setMinute (int m)
 Sets the minute of this time.
void setSecond (int s)
 Sets the second of this time.
void setSecond (int s)
 Sets the second of this time.
virtual void setTime (std::time_t t)
 Sets the time to the specified time_t value.
virtual void setTime (std::time_t t)
 Sets the time to the specified time_t value.
 Time (const Time &t)
 Copy constructor.
 Time (const ODBCXX_STRING &str)
 Constructor.
 Time (std::time_t t)
 Constructor.
 Time ()
 Constructor.
 Time (int hour, int minute, int second)
 Constructor.
 Time (const Time &t)
 Copy constructor.
 Time (const ODBCXX_STRING &str)
 Constructor.
 Time (std::time_t t)
 Constructor.
 Time ()
 Constructor.
 Time (int hour, int minute, int second)
 Constructor.
virtual ~Time ()
 Destructor.
virtual ~Time ()
 Destructor.

Protected Member Functions

int _validateHour (int h)
int _validateHour (int h)
int _validateMinute (int m)
int _validateMinute (int m)
int _validateSecond (int s)
int _validateSecond (int s)

Protected Attributes

int hour_
int minute_
int second_


Constructor & Destructor Documentation

odbc::Time::Time (  )  [explicit]

Constructor.

Sets the time to now.

odbc::Time::Time ( std::time_t  t  )  [inline]

Constructor.

Sets the time to the specified time_t value.

Definition at line 472 of file types.h.

odbc::Time::Time ( const ODBCXX_STRING &  str  )  [inline]

Constructor.

Sets the time to the specified string in the HH:MM:SS format.

Definition at line 480 of file types.h.

odbc::Time::Time (  )  [explicit]

Constructor.

Sets the time to now.

odbc::Time::Time ( std::time_t  t  )  [inline]

Constructor.

Sets the time to the specified time_t value.

Definition at line 472 of file types.h.

odbc::Time::Time ( const ODBCXX_STRING &  str  )  [inline]

Constructor.

Sets the time to the specified string in the HH:MM:SS format.

Definition at line 480 of file types.h.


The documentation for this class was generated from the following files:
GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy