Ctime () provided by c can format a time, the parameter type is long. Interesting place here, when defining a maximum long type OX7FFFFFF, check out what is the output of CTIME, a day of 2038 (Jan. 19 If I didn't make a mistake), this means according to the current long Computers can only be timed to 2038.