Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDateTime Methods

Constructor / Destructor

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

DateTime Handling

  • GetDateTime(): Retrieves the DateTime.
  • SetDateTime(): Sets the DateTime to the CTDateTime object.
  • Pack(): Packs an hour, minute and second value into a CTDATETIME type value.
  • Unpack(): Unpacks a CTDATETIME type value into hour, minute and second values
  • GetDate(): Retrieves a CTDate object from a CTDateTime object.
  • GetTime(): Retrieves a CTTime object from a CTDateTime object.
  • Year(): Retrieves the year component of a CTDATETIME object.
  • Month(): Retrieves the month component of a CTDATETIME object.
  • Day(): Retrieves the day component of a CTDATETIME object.
  • DayOfWeek(): Retrieves the day of the week from the date part of the CTDATETIME object.
  • IsLeapYear(): Indicates if the year component from a CTDATETIME object is a leap year.
  • Hour(): Retrieves the hour component from a CTDATETIME type value
  • Minute(): Retrieves the minute component from a CTDATETIME type value
  • Second(): Retrieves the second component from a CTDATETIME type value
  • DateTimeToString(): Converts a packed CTDATETIME type value to a CTString object
  • StringToDateTime(): Converts a CTString object to a DateTime object
  • CurrentDateTime(): Retrieves the current system date and time.
  • CurrentDate(): Retrieve the current system date and sets the time to zeros

In This Section

CTDateTime::CTDateTime

CTDateTime::~CTDateTime

CTDateTime::CurrentDate

CTDateTime::CurrentDateTime

CTDateTime::DateTimeToString

CTDateTime::Day

CTDateTime::DayOfWeek

CTDateTime::GetDate

CTDateTime::GetDateTime

CTDateTime::GetTime

CTDateTime::IsLeapYear

CTDateTime::Hour

CTDateTime::Minute

CTDateTime::Month

CTDateTime::Pack

CTDateTime::Second

CTDateTime::SetDateTime

CTDateTime::StringToDateTime

CTDateTime::Unpack

CTDateTime::Year

TOCIndex