initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python
import os
import calendar
import webbrowser
hcal = calendar.HTMLCalendar() # <1>
formatted_month = hcal.formatmonth(2012, 1) # <2>
html_file_name = 'sample_calendar.html'
with open(html_file_name, 'w') as calendar_out:
calendar_out.write(formatted_month) # <3>
webbrowser.open("file://" + os.path.realpath(html_file_name)) # <4>