# of Months between two dates

Jason Friedman jsf80238 at gmail.com
Fri Apr 6 19:55:30 EDT 2018


>
> >> > It's probably better to write the function yourself according to what
> >> > makes sense in your use-case, and document its behaviour clearly.
> >>
> >>
> > I suggest using the dateutil module (
> > https://pypi.python.org/pypi/python-dateutil) before writing your own.
>
> I'm not seeing a "months between" function in dateutil. Have I missed
> something?
>
> Huh, you are correct.  I've used dateutil often and incorrectly assumed it
does everything.


More information about the Python-list mailing list