dimanche 28 août 2016

Get localized date time using timezone C++ [duplicate]

This question already has an answer here:

I have time zone retrieved using UTC time, latitude and longitude, thus I know the timezone name now. But how would I calculate localized date using this time zone in my application.

I knew we could use localtime but that uses the time zone which is already set in environment variable. But I want to use the time zone which I have calculated to find localized date and time. How can I do this?

Aucun commentaire:

Enregistrer un commentaire