Property | Description | |||
Argument type | DTType the type of this CDateTime | |||
Argument newTime | time_t the object to populate from | |||
Argument systime | SYSTEMTIME the object to populate from | |||
Argument filetime | FILETIME the object to populate from | |||
Argument year | sets the Year part of the date. (Valid Range -9999 to 9999) | |||
Argument month | sets the Month part of the date. Jan = 1, Feb = 2 etc. (Valid Range = 1 to 12) | |||
Argument day | sets the Day part of the date. (Valid Range = 1 to days in month) | |||
Argument hour | sets the Hours part of the date. (Valid Range = 0 to 23) | |||
Argument minute | sets the Minutes part of the date. (Valid Range = 0 to 59) | |||
Argument second | sets the Seconds part of the date. (Valid Range = 0 to 59) | |||
Argument milli | sets the Milli-Seocnds part of the date. (Valid Range = 0 to 999) | |||
Argument micro | sets the Micro-Seocnds part of the date. (Valid Range = 0 to 999) | |||
Argument nano | sets the Nano-Seocnds part of the date. (Valid Range = 0 to 999) | |||
Description | Constructs a CDateTime. | |||
Remarks | CDateTime(); The internal data is invalid until a set method is called. CDateTime(DTType type); The internal data is invalid until a set method is called. NOTE: Only methods that keep this type may be used to set the data. CDateTime(const time_t& newTime); Constructs a CDateTime from a time_t object. If the newTime is invalid then internal data is cleared, and a set method must be called. CDateTime::CDateTime(const SYSTEMTIME& systime); (Win32 Only) Constructs a CDateTime from a SYSTEMTIME object. The internal data is set invalid on parsing invalid values. CDateTime::CDateTime(const FILETIME& filetime); (Win32 Only) Constructs a CDateTime from a FILETIME object. The internal data is set invalid on parsing invalid values. CDateTime(short year, BYTE month, BYTE day); Constructs a CDateTime, of type xs:date. This constructor is overloaded allowing different values to be set. The internal data is set invalid on parsing invalid values. NOTE: CDateTime uses the XML Schema formula for proleptic Gregorian calendar where year 0 is illegal and -4 (4BC) as a leap year. CDateTime(short year, BYTE month, BYTE day, BYTE hour, BYTE minute, BYTE second); Constructs a CDateTime, of type xs:dateTime. This constructor is overloaded allowing different values to be set. The internal data is set invalid on parsing invalid values. NOTE: CDateTime uses the XML Schema formula for proleptic Gregorian calendar where year 0 is illegal and -4 (4BC) as a leap year. CDateTime(short year, BYTE month, BYTE day, BYTE hour, BYTE minute, BYTE second, WORD milli, WORD micro, WORD nano); Constructs a CDateTime, of type xs:dateTime. This constructor is overloaded allowing different values to be set. The internal data is set invalid on parsing invalid values. NOTE: CDateTime uses the XML Schema formula for proleptic Gregorian calendar where year 0 is illegal and -4 (4BC) as a leap year. Param: year sets the Year part of the date. (Valid Range -9999 to 9999) |