Skip to content

Instantly share code, notes, and snippets.

View dynamic-entropy's full-sized avatar

Rahul Chauhan dynamic-entropy

  • 15:30 (UTC +02:00)
View GitHub Profile
import calendar
import argparse
from datetime import datetime, timedelta
from PIL import Image, ImageDraw, ImageFont
def generate_calendar(year, filename):
# Determine the start and end dates of the year
start_date = datetime(year, 1, 1)