<iomanip> get_time

使用所需格式,提取流的值。 返回该参数的值为时结构。

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

参数

  • _Tptr
    时间以结构形式的时间。

  • _Fmt
    使用所需格式获取时间值。

属性值/返回值

函数返回值是流 str。

备注

操控程序返回,那么,当从 str流,行为作为 formatted input function 调用区域设置方面的 time_get 成员函数与 get 关联的 str,并使用 tptr 和 fmt 指示终止空结构的时间格式的字符串的起始的对象。 如果成功,时间的调用存储结构化值与任何字段提取的时间。 移动然后返回 str。

要求

页眉: <iomanip>

命名空间: std

请参见

参考

<iomanip>

iostream 编程

iostreams 约定