[Python] How to convert a python datetime.timedelta to years?

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I need to check if n years have been since some date. I'm using timedelta from the datetime module and I don't know how to convert it to years.

    Continue reading...

Compartilhe esta Página