(C++) ctime.h
January 10, 2018 · View on GitHub
(C++) ctime.h
ctime.h is an STL header file, containing the definitions of some time related functions and classes (incomplete list):
- std::clock_t
- std::time_t
- std::tm
- std::clock
- std::difftime
- std::mktime
- std::time
- std::asctime
- std::ctime
- std::gmtime
- std::localtime
- std::strftime
Prefer clock.h facilities over ctime.h facilities [1].
References
- Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 35.6. Advice. page 159: '[2] Prefer <clock> facilities over <ctime> facilities'