TimeFormat

// Returns the time of day, e.g., "3:07 PM".

std::wstring TimeFormatTimeOfDay(const Time& time);

 

// Returns a shortened date, e.g. "Nov 7, 2007"

std::wstring TimeFormatShortDate(const Time& time);

 

// Returns a numeric date such as 12/13/52.

std::wstring TimeFormatShortDateNumeric(const Time& time);

 

// Formats a time in a friendly sentence format, e.g.

// "Monday, March 6, 2008 2:44:30 PM".

std::wstring TimeFormatShortDateAndTime(const Time& time);

 

// Formats a time in a friendly sentence format, e.g.

// "Monday, March 6, 2008 2:44:30 PM".

std::wstring TimeFormatFriendlyDateAndTime(const Time& time);

 

// Formats a time in a friendly sentence format, e.g.

// "Monday, March 6, 2008".

std::wstring TimeFormatFriendlyDate(const Time& time);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章