Is it possible to pass settimeofday() my time_t/epoch time value, in C? Could someone give me an example of how I could do it … my C skills are a little rusty :S
Would it be:
time_t time = somevalue;
settimeofday(somevalue, NULL);
I don’t have admin access where I’m working and so can’t test it out.
Thanks in advance!
settimeofday() takes a
struct timeval *as first argument, so you should dofollowup edit gettimeofday() is the counterpart: