25 practical automations

Calendars & dates

Work with schedules, dates, and time. Each guide includes full code, usage instructions, and ideas for making it your own.

Search this category ↗
PythonBeginner

Add business days to a date

Move forward by a chosen number of Monday-Friday days while skipping supplied exclusions.

Calendars & dates
PythonBeginner

Compare daily work windows

Find the UTC overlap between two local work windows on an explicit date.

Calendars & dates
PythonBeginner

Compare date pairs

Calculate signed day differences for start/end date pairs.

Calendars & dates
PythonBeginner

Find schedule overlaps

Report pairs of offset-bearing intervals that overlap in UTC.

Calendars & dates
PythonBeginner

Inspect ICS event fields

List stored summary, start, end, UID, and recurrence rule fields without expanding recurrences.

Calendars & dates
PythonBeginner

Label dates by quarter

Add calendar year, quarter, month, and weekday labels to ISO date lines.

Calendars & dates
PythonBeginner

List month-end dates

Generate the final date of every month in a chosen year.

Calendars & dates
PythonBeginner

Merge simple ICS event files

Combine event-only ICS files containing UTC or all-day event times, refusing duplicate UIDs.

Calendars & dates
PythonBeginner

Shift a schedule in UTC

Move every event start/end by an explicit duration and write a new CSV.

Calendars & dates