Get time settings related variable values.
void get_time_setting( int * pdaylight, long * ptimezone, char * tzname[2] )
EX1
#include <origin.h> void get_time_setting_ex1() { _tzset(); int daylight; long timezone; char* tzname[2]; get_time_setting(&daylight, &timezone, tzname); printf( "daylight = %d\n", daylight ); printf( "timezone = %ld\n", timezone ); printf( "tzname[0] = %s\n", tzname[0] ); printf( "tzname[1] = %s\n", tzname[1] ); }
_tzset
origin.h