Files
2026-06-26 16:19:48 -04:00

18 lines
485 B
Python

"""
control/time_utils.py
---------------------
Mirror of `app/utils/time_utils.now_eastern()` so the control plane keeps the
same naive-US/Eastern timestamp convention (CLAUDE.md Rule 2) WITHOUT importing
the data-plane app package.
"""
from datetime import datetime
import pytz
EASTERN = pytz.timezone('America/New_York')
def now_eastern() -> datetime:
"""Current wall-clock time in US/Eastern as a naive datetime."""
return datetime.now(tz=EASTERN).replace(tzinfo=None)