Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SADateTime::SADateTime

SADateTime();

SADateTime( const SADateTime &other );

SADateTime( const struct tm & tmValue );

SADateTime( const struct timeb &tmbValue);

SADateTime( const struct timeval &tmvValue);

SADateTime( double dValue );

SADateTime( int nYear, int nMonth, int nDay);

SADateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec );

SADateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, unsigned int nFraction);

SADateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, unsigned int nFraction, const SAChar* timezone);

SADateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, const SAChar* timezone);

All of these constructors initialize a new SADateTime object.

Parameters

other. A reference to the existing SADateTime object.

tmValue. A struct tm object represents date/time value in standard C structure.

tmbValue. A struct timeb object represents date/time value in standard C structure used by ftime routine.

tmvValue. A struct timeval  object represents date/time value in standard C structure used by gettimeofday routine.

dValue. Floating-point value, measuring days from midnight, 30 December 1899.

nYear, nMonth, nDay, nHour, nMin, nSec. Indicate the date and time values to be copied into the new SADateTime object.

nFraction. Indicate the fraction value to be copied into the new SADateTime object.

timezone. Indicate the timezone infromation to be copied into the new SADateTime object.

Remarks

  • SADateTime( ). Default constructor creates empty date/time value.
  • SADateTime( const SADateTime &other ). Copy constructor.
  • SADateTime( const struct tm &tmValue ) . Constructs new SADateTime object from standard C structure struct tm.
  • SADateTime( const struct timeb &tmbValue ) . Constructs new SADateTime object from standard C structure struct timeb.
  • SADateTime( const struct timeval &tmvValue ) . Constructs new SADateTime object from standard C structure struct timeval.
  • SADateTime( double dValue ) . Constructs new object from double value (DATE data type in Windows). Days are represented by whole number increments starting with 30 December 1899, midnight as time zero. Hour values are expressed as the absolute value of the fractional part of the number.
  • SADateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec ). Constructs a SADateTime object from the specified numerical values.

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.