Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDate Methods

Constructor / Destructor

  • CTDate(): Creates a CTDate object
  • ~CTDate(): Destroys a CTDate Object and resets all the dependent objects

Date Handling

  • GetDate(): Retrieves the date.
  • SetDate(): Sets the date to the CTDate object.
  • Pack(): Packs a year, month and day value into a CTDATE type value.
  • Unpack(): Unpacks a CTDATE type value into a year, month and day values
  • Year(): Retrieves the year component of a packed CTDATE type value
  • Month(): Retrieves the month component of a packed CTDATE type value
  • Day(): Retrieves the day component of a packed CTDATE type value
  • DayOfWeek(): Retrieves the day of the week from a packed CTDATE type value.
  • IsLeapYear(): Indicates if the year component of a packed CTDATE type value is a leap year
  • DateToString(): Converts a packed CTDATE type value to a CTString object
  • StringToDate(): Converts a CTString object to a date object
  • CurrentDate(): Retrieves the current system date.

In This Section

CTDate::CTDate

CTDate::~CTDate

CTDate::CurrentDate

CTDate::DateToString

CTDate::Day

CTDate::DayOfWeek

CTDate::GetDate

CTDate::IsLeapYear

CTDate::Month

CTDate::Pack

CTDate::SetDate

CTDate::StringToDate

CTDate::Unpack

CTDate::Year

TOCIndex