...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::iso_format_base — Class to provide common iso formatting spec.
// In header: <boost/date_time/iso_format.hpp> template<typename charT> class iso_format_base { public: // public static functions static month_format_spec month_format(); static const charT * not_a_date(); static const charT * pos_infinity(); static const charT * neg_infinity(); static charT year_sep_char(); static charT month_sep_char(); static charT day_sep_char(); static charT hour_sep_char(); static charT minute_sep_char(); static charT second_sep_char(); static charT period_start_char(); static charT time_start_char(); static charT week_start_char(); static charT period_sep_char(); static charT time_sep_char(); static charT fractional_time_sep_char(); static bool is_component_sep(charT); static bool is_fractional_time_sep(charT); static bool is_timezone_sep(charT); static charT element_sep_char(); };
iso_format_base
public static functionsstatic month_format_spec month_format();Describe month format – its an integer in iso format.
static const charT * not_a_date();String used printed is date is invalid.
static const charT * pos_infinity();String used to for positive infinity value.
static const charT * neg_infinity();String used to for positive infinity value.
static charT year_sep_char();ISO char for a year – used in durations.
static charT month_sep_char();ISO char for a month.
static charT day_sep_char();ISO char for a day.
static charT hour_sep_char();char for minute
static charT minute_sep_char();char for minute
static charT second_sep_char();char for second
static charT period_start_char();ISO char for a period.
static charT time_start_char();Used in time in mixed strings to set start of time.
static charT week_start_char();Used in mixed strings to identify start of a week number.
static charT period_sep_char();Separators for periods.
static charT time_sep_char();Separator for hh:mm:ss.
static charT fractional_time_sep_char();Preferred Separator for hh:mm:ss,decimal_fraction.
static bool is_component_sep(charT sep);
static bool is_fractional_time_sep(charT sep);
static bool is_timezone_sep(charT sep);
static charT element_sep_char();