(C++) Time
January 17, 2018 ยท View on GitHub
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
- Convert std::time_t to std::string, TimeToStr
- GetDateIso8601, get today's date in ISO 8601 format
- GetLastModifiedTime, get last time a file was modified
- GetTime, get local time
- GetTimestamp, get a timestamp of today's date and time
- GetToday, Get today's date
- Get last time a file was modified, GetLastModifiedTime
- Get local time, GetTime
- Get now's time, GetTime
- Get today's date, GetToday
- Get today's date in ISO 8601 format, GetDateIso8601
- Stopwatch, stopwatch class
- TimeToStr, convert std::time_t to std::string