Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allows for acquisition and manipulation of a date (day of year) More...
#include <hdicoreDate.h>
Public Member Functions | |
Date () | |
Constructs a Date object with a default value (1970-01-01) | |
Date (const Date &d_) | |
Constructs a Date object from another existing Date object. | |
Date (const std::string &date_) | |
Constructs a Date object from a string representation of a date. | |
Date (const int16_t year_, const int16_t month_, const int16_t day_) | |
Constructs a Date object from a given year, month, and day. | |
virtual | ~Date () |
Destructs a Date object. | |
virtual Date & | operator= (const Date &rhs_) |
Overloaded assignment operator to copy values from one Date object to another. | |
virtual bool | operator== (const Date &rhs_) const |
Overloaded equality operator to determine if two Date objects are equal. | |
virtual bool | operator!= (const Date &rhs_) const |
Overloaded inequality operator to determine if two Date objects differ. | |
virtual bool | operator< (const Date &rhs_) const |
Overloaded less-than operator to determine if one Date object is earlier in time than the other. | |
virtual bool | operator<= (const Date &rhs_) const |
Overloaded less-than-or-equal operator to determine if one Date object is earlier in time than, or equal to, the other. | |
virtual bool | operator> (const Date &rhs_) const |
Overloaded greater-than operator to determine if one Date object is later in time than the other. | |
virtual bool | operator>= (const Date &rhs_) const |
Overloaded greater-than-or-equal operator to determine if one Date object is later in time than, or equal to, the other. | |
virtual Duration | operator- (const Date &rhs_) const |
Overloaded subtraction operator to determine the duration between two Date objects. | |
virtual Date | operator- (const Duration &rhs_) const |
Overloaded substraction operator to determine the resultant date before the target. | |
virtual Date & | operator-= (const Duration &rhs_) |
Overloaded subtraction-assignment operator to determine and assign the resultant date before the initial target. | |
virtual Date | operator+ (const Duration &rhs_) const |
Overloaded addition operator to determine the resultant date after the target. | |
virtual Date & | operator+= (const Duration &rhs_) |
Overloaded addition-assignment operator to determine and assign the resultant date after the initial target. | |
virtual std::string | format (const std::string &format_="Y-m-d") const |
Formats the target Date object into a string representation. | |
virtual int16_t | year () const |
Gets the year represented by the target. | |
virtual void | setYear (const int16_t year_) |
Sets the year that the target should represent. | |
virtual int16_t | month () const |
Gets the month of the year represented by the target. | |
virtual void | setMonth (const int16_t month_) |
Sets the month of the year represented by the target. | |
virtual int16_t | day () const |
Gets the day of the month represented by the target. | |
virtual void | setDay (const int16_t day_) |
Sets the day of the month represented by the target. | |
virtual int16_t | dayOfWeek () const |
Gets the day number of the week, from 0 to 6. | |
virtual int16_t | weekNumber () const |
Gets the ISO-8601 week number of the year represented by the target, from 1 to 53. | |
virtual int16_t | endOfMonth () const |
Gets the last day of the month represented by the target, from 28 to 31. | |
virtual int16_t | dayOfYear () const |
Gets the day number of the year, from 1 to 366. | |
Static Public Member Functions | |
static Date | Current () |
Constructs a Date object from the current system date. | |
Friends | |
class | DateTime |
Allows for acquisition and manipulation of a date (day of year)
hdi::core::Date::Date | ( | ) |
Constructs a Date object with a default value (1970-01-01)
hdi::core::Date::Date | ( | const Date & | d_ | ) |
hdi::core::Date::Date | ( | const std::string & | date_ | ) |
Constructs a Date object from a string representation of a date.
date_ | String representation of a date |
hdi::core::Date::Date | ( | const int16_t | year_, |
const int16_t | month_, | ||
const int16_t | day_ | ||
) |
Constructs a Date object from a given year, month, and day.
year_ | Year, in the range [1970,9999] |
month_ | Month of the given year, in the range [1,12] |
day_ | Day of the month, in the range [1,31] |
|
virtual |
Destructs a Date object.
|
static |
|
virtual |
Gets the day of the month represented by the target.
|
virtual |
Gets the day number of the week, from 0 to 6.
|
virtual |
Gets the day number of the year, from 1 to 366.
|
virtual |
Gets the last day of the month represented by the target, from 28 to 31.
|
virtual |
Formats the target Date object into a string representation.
format_ | Input string representing the format for the output string |
|
virtual |
Gets the month of the year represented by the target.
|
virtual |
Overloaded addition operator to determine the resultant date after the target.
rhs_ | Righthand side of the operator, Duration object to add to the lefthand side |
Overloaded addition-assignment operator to determine and assign the resultant date after the initial target.
rhs_ | Righthand side of the operator, Duration object to add to the lefthand side |
Overloaded substraction operator to determine the resultant date before the target.
rhs_ | Righthand side of the operator, Duration object to substract from the lefthand side |
Overloaded subtraction-assignment operator to determine and assign the resultant date before the initial target.
rhs_ | Righthand side of the operator, Duration object to substract from the lefthand side |
|
virtual |
Overloaded less-than operator to determine if one Date object is earlier in time than the other.
rhs_ | Righthand side of the operator; Date object that might be later in time than the target (i.e. lefthand side) |
|
virtual |
Overloaded less-than-or-equal operator to determine if one Date object is earlier in time than, or equal to, the other.
rhs_ | Righthand side of the operator; Date object that might be later in time than, or equal to, the target (i.e. lefthand side) |
|
virtual |
|
virtual |
Overloaded greater-than operator to determine if one Date object is later in time than the other.
rhs_ | Righthand side of the operator; Date object that might be earlier in time than the target (i.e. lefthand side) |
|
virtual |
Overloaded greater-than-or-equal operator to determine if one Date object is later in time than, or equal to, the other.
rhs_ | Righthand side of the operator; Date object that might be earlier in time than, or equal to, the target (i.e. lefthand side) |
|
virtual |
Sets the day of the month represented by the target.
day_ | Day of the month, in range [1,31] |
|
virtual |
Sets the month of the year represented by the target.
month_ | Month of the year, in range [1,12] |
|
virtual |
Sets the year that the target should represent.
year_ | Year, in range [1970,9999] |
|
virtual |
Gets the ISO-8601 week number of the year represented by the target, from 1 to 53.
|
virtual |
Gets the year represented by the target.