SDL 2.0
Strangely I was unable to google it, how to get a system time & date?
SDL doesn't have functionality for retrieving the system time and date. It deals solely in 'wall time' - i.e. the absolute time elapsed since the program started (which is generally all you need to run games/simulations).
You'll need to use platform-specific functions (or a 3rd-party library) to obtain calendar date and time information.
Sigh... Can you recommend something light weight? Preferably crossplatform (if not then Windows) and something that's at least remotely similar to SDL interface wise.
You'll need to use platform-specific functions (or a 3rd-party library) to obtain calendar date and time information.
LOL, forgot to check if it's not available in the standard C libs (strangely I never needed it before) and assumed it must be something sophisticated. OK, solved, thanks.