|
|
|
SAInterval
This is MySQL specific class that is used to represent MySQL TIME data
type. Also can be used with SADateTime to
represent the difference between two dates.
|
Construction / Destruction
SAInterval()
SAInterval(double dVal)
SAInterval(long nDays, int nHours, int nMins, int nSecs)
|
Constructs a SAInterval
object |
|
Methods
double
GetTotalDays() const
double GetTotalHours() const
double GetTotalMinutes() const
double GetTotalSeconds() const
|
Returns the total days, hours, minutes or
seconds this SAInterval
object represents. |
long
GetDays() const
long GetHours() const
long GetMinutes() const
long GetSeconds() const
|
Returns the days, hours, minutes or
seconds this SAInterval
object represents. |
void
SetInterval(long nDays, int nHours, int nMins, int nSecs)
|
Sets the data SAInterval
object represents. |
|
Operators
SAInterval&
operator=(double dVal)
|
This operator assigns a double
value to SAInteval object.
|
operator double() const
|
This operator returns a double value whose value
is calculated from this SAInterval object. |
operator SAString() const
|
Returns a representation
of the SAInterval object as a string
value in '[-]HHH:MI:SS' format. |
SAInterval operator+(const
SAInterval& interval) const
SAInterval operator-(const SAInterval& interval) const
SAInterval& operator+=(const SAInterval interval)
SAInterval& operator-=(const SAInterval interval)
SAInterval operator-() const
|
SAInterval
arithmetic operators.
|
|
Problems and Questions
If you haven't found the answer to your questions or
have some problems on using the Library, please, send e-mail to howto@sqlapi.com.
|
|