Legacy – Calendars
- 01:36
Learn how to use the calendar library in Python.
Downloads
No associated resources to download.
Glossary
Calendar LibraryTranscript
The Date and Time package in Python is really useful. It's similar to the dates and times modules available in Excel. The calendar module is a really useful module that helps you generate your own calendars with custom start dates and also HTML calendars. The output calendar is similar to the one off the Unix Cal programme. Monday is by default, the first day in the calendar, we import the calendar by writing import calendar. Of course, the really good advantage of this calendar is that you can generate HTML calendars which can be put up on websites, we can certainly create a programme that would automatically update the calendar for any changes. This one is quite similar to the Google Calendars option. The advantage is that we can in the future generate our own calendar, which is under our control. There are many formulas or functions available in the calendar module. The functions shown on the screen is just a few examples of a massive list of functions. We will look into a few the calendar . calendar, meaning that the first calendar may be the name of the calendar that we generated. The . calendar creates a calendar and we can define what the first week day is. The Calendar . txt calendar generates a plain text calendar whereas the Calendar . HTML calendar generates a plain HTML calendar and the format of the HTML code. The format month returns a month calendar in a multi line string