| Home | Libraries | People | FAQ | More

## Class template iso_format_base

boost::date_time::iso_format_base — Class to provide common iso formatting spec.

## Synopsis

    // 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();
    };

## Description

### `iso_format_base` public static functions

1.     static month_format_spec month_format();

   Describe month format <ndash></ndash> its an integer in iso format.

2.     static const charT * not_a_date();

   String used printed is date is invalid.

3.     static const charT * pos_infinity();

   String used to for positive infinity value.

4.     static const charT * neg_infinity();

   String used to for positive infinity value.

5.     static charT year_sep_char();

   ISO char for a year <ndash></ndash> used in durations.

6.     static charT month_sep_char();

   ISO char for a month.

7.     static charT day_sep_char();

   ISO char for a day.

8.     static charT hour_sep_char();

   char for minute

9.     static charT minute_sep_char();

   char for minute

10.     static charT second_sep_char();

    char for second

11.     static charT period_start_char();

    ISO char for a period.

12.     static charT time_start_char();

    Used in time in mixed strings to set start of time.

13.     static charT week_start_char();

    Used in mixed strings to identify start of a week number.

14.     static charT period_sep_char();

    Separators for periods.

15.     static charT time_sep_char();

    Separator for hh:mm:ss.

16.     static charT fractional_time_sep_char();

    Preferred Separator for hh:mm:ss,decimal_fraction.

17.     static bool is_component_sep(charT sep);

18.     static bool is_fractional_time_sep(charT sep);

19.     static bool is_timezone_sep(charT sep);

20.     static charT element_sep_char();

### Specializations

- Class iso_format_base<wchar_t>