What is the Windows equivalent of the Unix function gmtime_r?
问题 I am porting some Unix code into Windows Visual Studio 2010. I have run into the following line gmtime_r(&now, &tm_time); I found that gmtime_r() is a standard Unix function, but I am hoping to find the Windows equivalent. I found quite a few gmtime functions in time.h, but I am having trouble finding which one is equivalent, if it even exists. Could someone point me in the right direction? 回答1: gmtime_r() is the thread-safe version of gmtime(). The MSVC implementation of gmtime() is already