Make my_mktime() public and rename it to tm_to_time_t()