I am looking for a function in C++ that calculates how many seconds have past from 1/1/1970 until today.
See man mktime:
man mktime
#include time_t secsSinceEpoch = mktime(localtime(NULL));