Quick help for a python newby, please

justin walters walters.justin01 at gmail.com
Wed Nov 23 10:57:15 EST 2016


On Wed, Nov 23, 2016 at 7:13 AM, Dayton Jones <jones.dayton at gmail.com>
wrote:

> ah...yes, but then how could I strip the rest (h:m:s) from it?
>
> Enter the numerical month you were born: 3
> Enter the numerical day of the month you were born: 30
> Enter the year you were born: 1989
> 10100 days, 0:00:00
> --
> https://mail.python.org/mailman/listinfo/python-list
>


You'll probably want to use `timedelta`:
https://docs.python.org/3.4/library/datetime.html#timedelta-objects



More information about the Python-list mailing list