The function localtime_rconverts the timestamp time_tto struct tmin the current time zone.
How can you convert UTC time_tto struct tmin a different time zone, for example. by the time, for example, in Sydney, Australia, taking into account daylight saving time and everything else, and without affecting use localtimein other parts of the program?
source
share