• rtxn@lemmy.world
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    11 hours ago

    timedelta marks time in days, seconds, and microseconds. It doesn’t take leap years into account because the concept of years is irrelevant to timedelta. If you need to account for leap years, you need a different API.