#include <stdio.h> #include <time.h> Basics A time_t object is a raw system time value (typically seconds since 00:00, Jan 1 1970 UTC) A struct tm lets you work with days, hours, mins etc.