Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Time

 

This page is about time in general, and less about the STL function std::time.

 

When you need to work with time and dates, the STL or the Boost.Date_Time libraries can be used.

 

 

 

 

 

Time code snippets

 

  1. Convert std::time_t to std::string, TimeToStr
  2. GetDateIso8601, get today's date in ISO 8601 format
  3. GetLastModifiedTime, get last time a file was modified
  4. GetTime, get local time
  5. GetTimestamp, get a timestamp of today's date and time
  6. GetToday, Get today's date
  7. Get last time a file was modified, GetLastModifiedTime
  8. Get local time, GetTime
  9. Get now's time, GetTime
  10. Get today's date, GetToday
  11. Get today's date in ISO 8601 format, GetDateIso8601
  12. Stopwatch, stopwatch class
  13. TimeToStr, convert std::time_t to std::string

 

 

 

 

 

STL time functions and structs

 

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict