Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs


Usage

Examples

SADateTime

Construction / Destruction

SADateTime Constructs a SADateTime object

Methods

GetYear Returns the year this SADateTime object represents.
GetMonth Returns the month this SADateTime object represents (1 – 12).
GetDay Returns the day this SADateTime object represents (1 – 31).
GetHour Returns the hour this SADateTime object represents (0 – 23).
GetMinute Returns the minute this SADateTime object represents (0 – 59).
GetSecond Returns the second this SADateTime object represents (0 – 59).
GetDayOfWeek Returns the day of the week this SADateTime object represents (Sunday = 1).
GetDayOfYear Returns the day of the year this SADateTime object represents (Jan 1 = 1).
Fraction Returns the value of the fraction of second (0 to 999,999,999) this SADateTime object represents.
GetTimeValue Sets the standard C structure to the date/time value this SADateTime object represents.
currentDateTime Creates a SADateTime object that represents the current time (static member function).
currentDateTimeWithFraction Creates a SADateTime object that represents the current time with fraction (static member function).
Timezone Returns the value of the timezone this SADateTime object represents.

Operators

operator struct tm This operator returns a struct tm object whose value is copied from this SADateTime object.
operator double This operator returns a double (DATE in Windows) value whose value is calculated from this SADateTime object.
operator SAString
Returns a representation of the SADateTime object as a string value in 'YYYY-MM-DDTHH:MI:SS' format.
SADateTime operator+(SAInterval interval) const
SADateTime operator-(SAInterval interval) const
SADateTime& operator+=(SAInterval interval)
SADateTime& operator-=(SAInterval interval)

SAInterval operator-(const SADateTime& dt) const
Arithmetic operators - return SAInterval object.