---
source: crates/ruff/src/rules/flake8_datetimez/mod.rs
---
DTZ012.py:4:1: DTZ012 The use of `datetime.date.fromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=).date()` instead
  |
4 | # qualified
5 | datetime.date.fromtimestamp(1234)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ DTZ012
6 | 
7 | from datetime import date
  |

DTZ012.py:9:1: DTZ012 The use of `datetime.date.fromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=).date()` instead
   |
 9 | # unqualified
10 | date.fromtimestamp(1234)
   | ^^^^^^^^^^^^^^^^^^^^^^^^ DTZ012
   |


