Skip to content

v1.0.0

Latest

Choose a tag to compare

@cagrihanakca cagrihanakca released this 06 Apr 20:37
bd64c8c

Inital release of cgr::Date — a simple C++20 date library.

Features

  • Date construction from day/month/year, string and epoch time
  • Getters (day, month, year, day of year, weekday, ISO week)
  • Setter chaining
  • Arithmetic operations (add, subtract, increment, decrement)
  • Comparison operators
  • Stream extraction and insertion
  • Leap year query
  • Random date generation
  • Exception-based error handling with reason codes