time now c

C
#include <time.h>
time_t now = time(0); // Get the system time
Source

Also in C: