Logo Search packages:      
Sourcecode: passenger version File versions  Download package

boost::date_time::time_facet< time_type, CharT, OutItrT > Class Template Reference

#include <time_facet.hpp>

Inheritance diagram for boost::date_time::time_facet< time_type, CharT, OutItrT >:

boost::date_time::date_facet< time_type::date_type, CharT, OutItrT >

List of all members.


Detailed Description

template<class time_type, class CharT, class OutItrT = std::ostreambuf_iterator<CharT, std::char_traits<CharT> >>
class boost::date_time::time_facet< time_type, CharT, OutItrT >

Facet used for format-based output of time types This class provides for the use of format strings to output times. In addition to the flags for formatting date elements, the following are the allowed format flags:

Definition at line 159 of file time_facet.hpp.


Public Types

typedef
boost::date_time::date_facet
< typename
time_type::date_type, CharT,
OutItrT > 
base_type
typedef base_type::char_type char_type
typedef
base_type::date_gen_formatter_type 
date_gen_formatter_type
typedef time_type::date_type date_type
typedef
time_type::date_type::day_of_week_type 
day_of_week_type
typedef
time_type::date_type::day_type 
day_type
typedef
time_type::date_type::duration_type 
duration_type
typedef first_kday_of_month
< time_type::date_type > 
first_kday_type
typedef std::vector
< std::basic_string< CharT > > 
input_collection_type
typedef first_kday_after
< time_type::date_type > 
kday_after_type
typedef first_kday_before
< time_type::date_type > 
kday_before_type
typedef last_kday_of_month
< time_type::date_type > 
last_kday_type
typedef
time_type::date_type::month_type 
month_type
typedef nth_kday_of_month
< time_type::date_type > 
nth_kday_type
typedef partial_date
< time_type::date_type > 
partial_date_type
typedef
base_type::period_formatter_type 
period_formatter_type
typedef
boost::date_time::period
< time_type,
time_duration_type > 
period_type
typedef
base_type::special_values_formatter_type 
special_values_formatter_type
typedef base_type::string_type string_type
typedef
time_type::time_duration_type 
time_duration_type

Public Member Functions

void date_gen_phrase_strings (const input_collection_type &new_strings, typename date_gen_formatter_type::phrase_elements beg_pos=date_gen_formatter_type::first)
void format (const char_type *const format_str)
void long_month_names (const input_collection_type &long_names)
void long_weekday_names (const input_collection_type &long_names)
void month_format (const char_type *const format_str)
void period_formatter (period_formatter_type per_formatter)
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const kday_after_type &fka) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const kday_before_type &fkb) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const last_kday_type &lkd) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const first_kday_type &fkd) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const nth_kday_type &nkd) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const partial_date_type &pd) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const period_type &p) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const day_of_week_type &dow) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const day_type &day) const
 puts the day of month
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const month_type &m) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const duration_type &dd) const
OutItrT put (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const time_type::date_type &d) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill, const period_type &p) const
OutItrT put (OutItrT a_next, std::ios_base &a_ios, char_type a_fill, const time_duration_type &a_time_dur) const
 put function for time_duration
OutItrT put (OutItrT a_next, std::ios_base &a_ios, char_type a_fill, const time_type &a_time) const
virtual void set_iso_extended_format ()
virtual void set_iso_format ()
void short_month_names (const input_collection_type &short_names)
void short_weekday_names (const input_collection_type &short_names)
void special_values_formatter (const special_values_formatter_type &svf)
void time_duration_format (const char_type *const format)
 Changes format for time_duration.
 time_facet (const char_type *a_format, period_formatter_type period_formatter=period_formatter_type(), const special_values_formatter_type &special_value_formatter=special_values_formatter_type(), date_gen_formatter_type dg_formatter=date_gen_formatter_type(),::size_t a_ref=0)
 Construct the facet with an explicitly specified format.
 time_facet (::size_t=0)
 sets default formats for ptime, local_date_time, and time_duration
void weekday_format (const char_type *const format_str)

Static Public Attributes

static const char_type default_date_format [9]
static const char_type default_period_separator [4]
static const char_type * default_time_duration_format
static const char_type * default_time_format
static const char_type * duration_seperator = time_formats<CharT>::duration_seperator
static const char_type * duration_sign_always = time_formats<CharT>::duration_sign_always
static const char_type * duration_sign_negative_only = time_formats<CharT>::duration_sign_negative_only
static const char_type * fractional_seconds_format = time_formats<CharT>::fractional_seconds_format
static const char_type * fractional_seconds_or_none_format = time_formats<CharT>::fractional_seconds_or_none_format
static std::locale::id id
static const char_type iso_format_extended_specifier [9]
static const char_type iso_format_specifier [7]
static const char_type * iso_time_format_extended_specifier = time_formats<CharT>::iso_time_format_extended_specifier
static const char_type * iso_time_format_specifier = time_formats<CharT>::iso_time_format_specifier
static const char_type long_month_format [3]
static const char_type long_weekday_format [3]
static const char_type * negative_sign = time_formats<CharT>::negative_sign
static const char_type * positive_sign = time_formats<CharT>::positive_sign
static const char_type * posix_zone_string_format = time_formats<CharT>::posix_zone_string_format
static const char_type * seconds_format = time_formats<CharT>::seconds_format
static const char_type * seconds_with_fractional_seconds_format
static const char_type short_month_format [3]
static const char_type short_weekday_format [3]
static const char_type * standard_format = time_formats<CharT>::standard_format
static const char_type standard_format_specifier [3]
static const char_type * zone_abbrev_format = time_formats<CharT>::zone_abbrev_format
static const char_type * zone_iso_extended_format = time_formats<CharT>::zone_iso_extended_format
static const char_type * zone_iso_format = time_formats<CharT>::zone_iso_format
static const char_type * zone_name_format = time_formats<CharT>::zone_name_format

Protected Member Functions

virtual OutItrT do_put_special (OutItrTnext, std::ios_base &, char_type, const boost::date_time::special_values sv) const
virtual OutItrT do_put_tm (OutItrTnext, std::ios_base &a_ios, char_type fill_char, const tm &tm_value, string_type a_format) const
tm init_tm (tm &tm_value) const
 Helper function to initialize all fields in a tm struct.

Static Protected Member Functions

static string_type fractional_seconds_as_string (const time_duration_type &a_time, bool null_when_zero)

Protected Attributes

date_gen_formatter_type m_date_gen_formatter
string_type m_format
string_type m_month_format
input_collection_type m_month_long_names
input_collection_type m_month_short_names
period_formatter_type m_period_formatter
special_values_formatter_type m_special_values_formatter
string_type m_weekday_format
input_collection_type m_weekday_long_names
input_collection_type m_weekday_short_names

Private Attributes

string_type m_time_duration_format

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index