You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "time.h"
|
|
|
|
time_t get_utc_time()
|
|
{
|
|
time_t local_time = time(NULL);
|
|
|
|
struct tm utc_time;
|
|
gmtime_r( &local_time, &utc_time );
|
|
return mktime(&utc_time);
|
|
}
|