好像是由sprintf使用%2d hh-2位数小时timeptr->tm_hour好像是由sprintf使用%.2d mm-2位数分钟timeptr->tm_min好像是由sprintf使用%.2d ss