• waldfee@feddit.org
    link
    fedilink
    arrow-up
    12
    ·
    12 hours ago

    crystal is another language that’s apparently quite similar to ruby, with the difference of being compiled and staticly type-checked, and I just love it’s ruby like syntax. I believe the equivalent code for this in crystal would be Time.local - 10.years

    • hinterlufer@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      one could certainly implement something like that in python, something like time.now - 10 * time.unit.year