A DateTime Object in C++, Part III

Publication: C++ Builder Developer's Journal
Issue: Volume 8, Number 7, July 2004

At 15 and a half pages, this article was split across 3 issues and covers many aspects of C++ class design including operator overloading and Friend functions. Sub headings include:

  • C Date and Time Functions
  • Designing TXDateTime - What sort of information do I want to store - What actions are performed on the information - How does the class interact with others - How does the class get used.
  • TXDateTime Declaration
  • Exceptions
  • DateToStr Function
  • TDateData
  • Global, Static and Extern Variables
  • Operator Overloading
  • Friend Functions
  • Deriving a new class
  • Conversion Operators
  • Inheritance - Constructors and Destructors - Operators