다음을 통해 공유


time_get Class

The template class describes an object that can serve as a locale facet to control conversions of sequences of type CharType to time values.

template <
   class CharType,
   class InputIterator = istreambuf_iterator<CharType>
> class time_get : public time_base;

Parameters

  • CharType
    The type used within a program to encode characters.

  • InputIterator
    The iterator from which the time values are read.

Remarks

As with any locale facet, the static object ID has an initial stored value of zero. The first attempt to access its stored value stores a unique positive value in id.

Constructors

time_get

The constructor for objects of type time_get.

Typedefs

char_type

A type that is used to describe a character used by a locale.

iter_type

A type that describes an input iterator.

Member Functions

date_order

Returns the date order used by a facet.

do_date_order

A protected virtual member function that is called to return the date order used by a facet.

do_get

Reads and converts character data to a time value.

do_get_date

A protected virtual member function that is called to parse a string as the date produced by the x specifier for strftime.

do_get_monthname

A protected virtual member function that is called to parse a string as the name of the month.

do_get_time

A protected virtual member function that is called to parse a string as the date produced by the X specifier for strftime.

do_get_weekday

A protected virtual member function that is called to parse a string as the name of the day of the week.

do_get_year

A protected virtual member function that is called to parses a string as the name of the year.

get

Reads from a source of character data and converts that data to a time that is stored in a time struct.

get_date

Parses a string as the date produced by the x specifier for strftime.

get_monthname

Parses a string as the name of the month.

get_time

Parses a string as the date produced by the X specifier for strftime.

get_weekday

Parses a string as the name of the day of the week.

get_year

Parses a string as the name of the year.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

<locale>

time_base Class

Thread Safety in the C++ Standard Library