Python date and time Ⅱ

Gets a calendar month

Calendar module has a wide range of methods for processing and calendar almanac, such as printing of a calendar month:

 

 Examples of the above output:

 

 

Time Module

Time Module contains the following built-in function, both https://www.xuanhe.net/ processing time, but also the format conversion time:

 

 Time Module includes the following two very important properties:

 

 

Calendar (Calendar) module

This module functions are related to the calendar, such as printing a calendar month characters.

Monday is the default first day of the week, Sunday is the last day of default. Change the setting to be called calendar.setfirstweekday () function. Module contains the following built-in functions:

 

Guess you like

Origin www.cnblogs.com/danjiu/p/11573543.html