<iomanip> put_time

编写从时间结构的时值。通过使用指定的格式的流。

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

参数

  • _Tptr
    编写时间值入流,假定在机制。

  • _Fmt
    写入的预期布局时间值。

属性值/返回值

返回流 str。

备注

操作者返回,那么,当插入到流 str,其行为 formatted output function的对象。输出函数调用区域设置方面的 time_put 成员函数 put 与 str。输出函数使用 _Tptr 指示机制和 _Fmt 指示一个NUL终止的格式字符串的开头。如果成功,调用插入从格式字符串中的文本和从机制的转换的值。操作者然后返回 str。

要求

标头: <iomanip>

命名空间: std

请参见

参考

<iomanip>

iostream编程

(mfc)约定