[tor-commits] [tor/master] Extract core part of gmtime_r, localtime_r (without logging)