---
source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs
---
DTZ901 Use of `datetime.datetime.max` without timezone information
 --> DTZ901.py:5:1
  |
4 | # Error
5 | datetime.datetime.max
  | ^^^^^^^^^^^^^^^^^^^^^
6 | datetime.datetime.min
  |
help: Replace with `datetime.datetime.max.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.min` without timezone information
 --> DTZ901.py:6:1
  |
4 | # Error
5 | datetime.datetime.max
6 | datetime.datetime.min
  | ^^^^^^^^^^^^^^^^^^^^^
7 |
8 | datetime.datetime.max.replace(year=...)
  |
help: Replace with `datetime.datetime.min.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.max` without timezone information
 --> DTZ901.py:8:1
  |
6 | datetime.datetime.min
7 |
8 | datetime.datetime.max.replace(year=...)
  | ^^^^^^^^^^^^^^^^^^^^^
9 | datetime.datetime.min.replace(hour=...)
  |
help: Replace with `datetime.datetime.max.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.min` without timezone information
 --> DTZ901.py:9:1
  |
8 | datetime.datetime.max.replace(year=...)
9 | datetime.datetime.min.replace(hour=...)
  | ^^^^^^^^^^^^^^^^^^^^^
  |
help: Replace with `datetime.datetime.min.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.max` without timezone information
  --> DTZ901.py:27:1
   |
26 | # Error
27 | datetime.max
   | ^^^^^^^^^^^^
28 | datetime.min
   |
help: Replace with `datetime.datetime.max.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.min` without timezone information
  --> DTZ901.py:28:1
   |
26 | # Error
27 | datetime.max
28 | datetime.min
   | ^^^^^^^^^^^^
29 |
30 | datetime.max.replace(year=...)
   |
help: Replace with `datetime.datetime.min.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.max` without timezone information
  --> DTZ901.py:30:1
   |
28 | datetime.min
29 |
30 | datetime.max.replace(year=...)
   | ^^^^^^^^^^^^
31 | datetime.min.replace(hour=...)
   |
help: Replace with `datetime.datetime.max.replace(tzinfo=...)`

DTZ901 Use of `datetime.datetime.min` without timezone information
  --> DTZ901.py:31:1
   |
30 | datetime.max.replace(year=...)
31 | datetime.min.replace(hour=...)
   | ^^^^^^^^^^^^
   |
help: Replace with `datetime.datetime.min.replace(tzinfo=...)`
