Module iter

Source
Expand description

Iterators for datetime ranges

This module provides iterators for working with datetime ranges:

  • NaiveDatetimeIterator: Iterates through individual datetimes
  • NaiveDatetimeRangeIterator: Iterates through datetime ranges

Both iterators support forward and reverse iteration:

  • Forward iteration: Use positive step duration
  • Reverse iteration: Use negative step duration

See the individual iterator documentation for examples.

Structs§

NaiveDatetimeIterator
Iterator that yields datetimes between start and end with given step
NaiveDatetimeRangeIterator
An iterator that produces consecutive datetime ranges

Enums§

NaiveDatetimeIterError
Errors that can occur when creating a datetime iterator