akkudoktoreos.utils.datetimeutil.hours_in_day
- akkudoktoreos.utils.datetimeutil.hours_in_day(dt: DateTime | None = None) int
Returns the number of hours in the given date’s day, considering DST transitions.
- Parameters:
dt (Optional[pendulum.DateTime]) – The date to check (no time component).
- Returns:
The number of hours in the day (23, 24, or 25).
- Return type:
int