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