visual c++ - How to convert local time to Argentina time? -
i want draw 4 analog clocks. first basis on iran time, second : argentina time, third: brazil time , fourth: france time.
system's time (basis iran's time) , show on analog clock. don't know how 3 others time , show them.
glfloat h,m,s; time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime );
can me?
you didn't specify language, guessing using c++. if case can use gmtime function explained here utc time , add adjust hour adding utc offset argentinia (timeinfo->tm_hour = -3 or whatever correct syntax is)
Comments
Post a Comment