Its not. Per the docs of $dateTrunc quoted in my previous reply(and the last post on the SO thread) the offset is from 2000-01-01.

Calculate it forward and the bin for the 7 day bin begins 2004-11-30.

#!/usr/bin/env python3
from datetime import datetime,timedelta

base_date=datetime(2000,1,1)
days1=timedelta(days=1)
date=datetime(2024,11,1)
while date < datetime(2025,1,1):
    if (date-base_date).days % 7 == 0:
        print(date)
    date+=days1
1 Like