Compartilhar via


<iomanip> get_time

Extracts a time value from a stream using a desired format. Returns the value in a parameter as a time structure.

template<class Elem>
    T10 put_time(
        struct tm *_Tptr, 
        const Elem *_Fmt
    );

Parameters

  • _Tptr
    The time in the form of a time structure.

  • _Fmt
    The desired format to use to obtain the time value.

Property Value/Return Value

The function return value is the stream str.

Remarks

The manipulator returns an object that, when extracted from the stream str, behaves as a formatted input function that calls the member function get for the locale facet time_get associated with str, using tptr to indicate the time structure and fmt to indicate the beginning of a null-terminated format string. If successful, the call stores in the time structure the values associated with any extracted time fields. The manipulator then returns str.

Requirements

Header: <iomanip>

Namespace: std

See Also

Reference

<iomanip>

iostream Programming

iostreams Conventions

Other Resources

<iomanip> Members