1//===-- MIUtilDateTimeStd.h -------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#pragma once 11 12// Third party headers 13#include <ctime> 14 15// In-house headers: 16#include "MIUtilString.h" 17 18//++ ============================================================================ 19// Details: MI common code utility class. Used to retrieve system local date 20// time. 21//-- 22class CMIUtilDateTimeStd 23{ 24 // Methods: 25 public: 26 /* ctor */ CMIUtilDateTimeStd(); 27 28 CMIUtilString GetDate(); 29 CMIUtilString GetTime(); 30 CMIUtilString GetDateTimeLogFilename(); 31 32 // Overrideable: 33 public: 34 // From CMICmnBase 35 /* dtor */ virtual ~CMIUtilDateTimeStd(); 36 37 // Attributes: 38 private: 39 std::time_t m_rawTime; 40 char m_pScratch[16]; 41}; 42