ellenshow第15:SAInterval

来源:百度文库 编辑:中财网 时间:2024/05/08 15:42:44
Home How To Online Documentation Support Download Order
SACommand
SAConnection
SAException
SAField
SAParam
SAString
SADateTime
SANumeric
SAInterval
Enums and Typedefs
SAInterval
This is MySQL specific class that is used to represent MySQL TIME datatype. Also can be used withSADateTime torepresent the difference between two dates.
Construction / Destruction
SAInterval()
SAInterval(double dVal)
SAInterval(long nDays, int nHours, int nMins, int nSecs)
Constructs a SAIntervalobject
Methods
doubleGetTotalDays() const
double GetTotalHours() const
double GetTotalMinutes() const
double GetTotalSeconds() const
Returns the total days, hours, minutes orseconds this SAIntervalobject represents.
longGetDays() const
long GetHours() const
long GetMinutes() const
long GetSeconds() const
Returns the days, hours, minutes orseconds this SAIntervalobject represents.
voidSetInterval(long nDays, int nHours, int nMins, int nSecs)
Sets the data SAIntervalobject 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 valueis calculated from this SAInterval object.
operator SAString() const
Returns a representationof the SAInterval object as a stringvalue in '[-]HHH:MI:SS' format.
SAInterval operator+(constSAInterval& interval) const
SAInterval operator-(const SAInterval& interval) const
SAInterval& operator+=(const SAInterval interval)
SAInterval& operator-=(const SAInterval interval)
SAInterval operator-() const
SAIntervalarithmetic operators.
Problems and Questions
If you haven't found the answer to your questions orhave some problems on using the Library, please, send e-mail tohowto@sqlapi.com.