current time in c programming code example Example: time now c #include <time.h> time_t now = time(0); // Get the system time