• wols@lemmy.zip
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    1 day ago

    The comparison is somewhat awkward, because the rails example presumably produces a date, while the python one is referring to an interval of time.
    Just from the meme it’s not obvious which was the actual intended use, so labeling either as inaccurate requires us to make assumptions.

    Personally, the concept of “10 years ago” is a bit nebulous to me. If today is February 29th, is ten years ago March 1st? Doesn’t seem right. Or particularly useful.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      23 hours ago

      yeah, that’s pretty much why timedelta doesn’t have the concept of months or years, just days and smaller units. I like it better this way.