| Home | Libraries | People | FAQ | More

## Class template simple_format

boost::date_time::simple_format —

Class to provide simple basic formatting rules.

## Synopsis

    template<typename charT>
    class simple_format {
    public:

      // public static functions
      const charT * not_a_date() ;
      const charT * pos_infinity() ;
      const charT * neg_infinity() ;
      month_format_spec month_format() ;
      ymd_order_spec date_order() ;
      bool has_date_sep_chars() ;
      charT year_sep_char() ;
      charT month_sep_char() ;
      charT day_sep_char() ;
      charT hour_sep_char() ;
      charT minute_sep_char() ;
      charT second_sep_char() ;
    };

## Description

### `simple_format` public static functions

1.     const charT * not_a_date() ;

   String used printed is date is invalid.

2.     const charT * pos_infinity() ;

   String used to for positive infinity value.

3.     const charT * neg_infinity() ;

   String used to for positive infinity value.

4.     month_format_spec month_format() ;

   Describe month format.

5.     ymd_order_spec date_order() ;

6.     bool has_date_sep_chars() ;

   This format uses '-' to separate date elements.

7.     charT year_sep_char() ;

   Char to sep?

8.     charT month_sep_char() ;

   char between year-month

9.     charT day_sep_char() ;

   Char to separate month-day.

10.     charT hour_sep_char() ;

    char between date-hours

11.     charT minute_sep_char() ;

    char between hour and minute

12.     charT second_sep_char() ;

    char for second

### Specializations

- Class simple_format<wchar_t>

| Copyright © 2001-2004 CrystalClear Software, Inc