brief introduction
time The module is mainly used for time processing , This includes formatted output of time 、 Get time and other functions .
Common functions
time.strftime
Returns the current time in string
- %Y Four digit year representation (000-9999)
- %y Two digit year representation (00-99)
- %m month (01-12)
- %d One day in the month (0-31)
- %H 24 Hours in hours (0-23)
- %M Minutes (00=59)
- %S second (00-59)