Week number according to ISO 8601. More...
Week number according to ISO 8601.
Inheritance diagram for WeekNumber:Public Member Methods | |
| WeekNumber () | |
| Default constructor. More... | |
| WeekNumber (TimeStamp timeStamp) | |
| Explicit convertion from TimeStamp. More... | |
| WeekNumber (const String &text) | |
| Explicit convertion from string. More... | |
| WeekNumber (Int32 year, Int32 week) | |
| Default constructor. More... | |
| void | SetWeekNumber (Int32 year, Int32 week) |
| Sets the week number. More... | |
| Int32 | GetYear () const |
| Gets the year. More... | |
| Int32 | GetWeek () const |
| Gets the week. More... | |
| TimeStamp | ToTimeStamp () const |
| Converts this week number to a time stamp. More... | |
| void | ConvertFrom (PCChar8 text) |
| Convert from. More... | |
| void | ConvertTo (BaseStaticString &text) const |
| Convert to. More... | |
| WeekNumber & | operator+= (const TimeSpan &timeSpan) |
| Addition assignment operator. More... | |
| WeekNumber & | operator-= (const TimeSpan &timeSpan) |
| Subtraction assignment operator. More... | |
| Date | GetDate (DayOfWeek DayOfWeek=dwMonday) const |
| Gets a date. More... | |
| WeekNumber | ( | ) |
Default constructor.
|
explicit |
Explicit convertion from TimeStamp.
| timeStamp | The time stamp. |
|
explicit |
Explicit convertion from string.
| text | The text containing the weekNumber value. ("2011-04" means years 2011 week number 4) |
| WeekNumber | ( | Int32 | year, |
| Int32 | week | ||
| ) |
|
virtual |
Convert from.
| text | The text containing the weekNumber value. ("2011-04" means years 2011 week number 4) |
Implements IStringConvertible.
|
virtual |
Gets a date.
| DayOfWeek | (optional) the day of week. |
| Int32 GetWeek | ( | ) | const |
Gets the week.
| Int32 GetYear | ( | ) | const |
Gets the year.
| WeekNumber& operator+= | ( | const TimeSpan & | timeSpan | ) |
Addition assignment operator.
| timeSpan | The time span. |
| WeekNumber& operator-= | ( | const TimeSpan & | timeSpan | ) |
Subtraction assignment operator.
| timeSpan | The time span. |
| TimeStamp ToTimeStamp | ( | ) | const |
Converts this week number to a time stamp.