#include <boost/locale/date_time.hpp>
Public Member Functions | |
| calendar (std::ios_base &ios) | |
| calendar (std::locale const &l, time_zone const &zone) | |
| calendar (std::locale const &l) | |
| calendar (time_zone const &zone) | |
| calendar () | |
| calendar (calendar const &other) | |
| calendar const & | operator= (calendar const &other) |
| int | minimum (period::period_type f) const |
| int | greatest_minimum (period::period_type f) const |
| int | maximum (period::period_type f) const |
| int | least_maximum (period::period_type f) const |
| int | first_day_of_week () const |
| std::locale | get_locale () const |
| time_zone | get_time_zone () const |
| bool | is_gregorian () const |
| bool | operator== (calendar const &other) const |
| bool | operator!= (calendar const &other) const |
Friends | |
| class | date_time |
This information is not connected to specific date but generic to locale, and timezone. It is used in obtaining general information about calendar and is essential for creation of date_time objects.
| boost::locale::calendar::calendar | ( | std::ios_base & | ios | ) |
| boost::locale::calendar::calendar | ( | std::locale const & | l, | |
| time_zone const & | zone | |||
| ) |
| boost::locale::calendar::calendar | ( | std::locale const & | l | ) |
| boost::locale::calendar::calendar | ( | time_zone const & | zone | ) |
| int boost::locale::calendar::minimum | ( | period::period_type | f | ) | const |
Get minimum value for period f, For example for period::day it is 1.
| int boost::locale::calendar::greatest_minimum | ( | period::period_type | f | ) | const |
Get grates possible minimum value for period f, For example for period::day it is 1, but may be different for other calendars.
| int boost::locale::calendar::maximum | ( | period::period_type | f | ) | const |
Get maximum value for period f, For example for Gregorian calendar's maximum period::day it is 31.
| int boost::locale::calendar::least_maximum | ( | period::period_type | f | ) | const |
Get least maximum value for period f, For example for Gregorian calendar's maximum period::day it is 28.
| int boost::locale::calendar::first_day_of_week | ( | ) | const |
Get first day of week for specific calendar, for example for US it is 1 - Sunday for France it is 2 - Monday
| std::locale boost::locale::calendar::get_locale | ( | ) | const |
get calendar's locale
| time_zone boost::locale::calendar::get_time_zone | ( | ) | const |
get calendar's time zone
| bool boost::locale::calendar::is_gregorian | ( | ) | const |
Check if the calendar is Gregorian
| bool boost::locale::calendar::operator== | ( | calendar const & | other | ) | const |
Compare calendars for equivalence: i.e. calendar types, time zones etc.
| bool boost::locale::calendar::operator!= | ( | calendar const & | other | ) | const |
Opposite of ==
1.5.6