Getting current time of a different timezone using C++ -
I am a different time zone How do I get the current time? For example, I need to know the current time in Singapore where my system is set at the time PT.
An implementation UTC current time to get Time
to use and then in your destination time zone to be TZ
environment variable to be manipulated. Then convert the zone to the local time for localtime_r
to use.
Comments
Post a Comment