icalendar.tools module#
Utility functions for icalendar.
- icalendar.tools.is_date(dt: date | datetime) bool[source]#
Whether this is a date and not a datetime.
- icalendar.tools.is_datetime(dt: date | datetime) TypeIs[datetime][source]#
Whether this is a datetime and not just a date.
- icalendar.tools.is_pytz(tz: tzinfo) bool[source]#
Whether the timezone requires localize() and normalize().
- icalendar.tools.is_pytz_dt(dt: date | datetime) TypeIs[datetime][source]#
Whether the time requires localize() and normalize().