I want to write a function,
bool brokenDownTime(const time_t& time, const string& timezone, struct tm& brokenTIme);
here brokenDownTIme() should convert the 'time'(since EPOCH) to broken down time 'brokenTime' after adjusting for the timezone specified by 'timezone'

Thanks,
Prateek
|

I want to write a function,
bool brokenDownTime(const time_t& time, const string& timezone, struct tm& brokenTIme);
here brokenDownTIme() should convert the 'time'(since EPOCH) to broken down time 'brokenTime' after adjusting for the timezone specified by 'timezone'

Thanks,
Prateek

Well gmtime() does most of the donkey work for you.