<iomanip> put_time
使用指定的格式,將資料流寫入階段架構的時間值。
template<class Elem>
T10 put_time(
struct tm *_Tptr,
const Elem *_Fmt
);
參數
_Tptr
要寫入的時間值寫入資料流,,假設在時間結構。_Fmt
寫入時間值的預期格式。
屬性值/傳回值
傳回資料流的 str。
備註
操作工具傳回,,當插入資料流 str,做為 formatted output function的物件。 地區設定之 facet time_put 成員函式 put 與 str的匯出函式呼叫。 輸出函式使用 _Tptr 表示時間結構和 _Fmt 表示 NUL 結束的格式字串的開頭。 如果成功,呼叫每個格式字串的常值文字和從將結構的轉換值。 操作工具然後傳回 str。
需求
標頭 <iomanip>
命名空間: std