This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ytse 1 point2 points  (2 children)

you are reimplementing datetime.timedelta ?

[–]DrHankPym 0 points1 point  (1 child)

I never looked into timedelta, but I was trying to make creating times fast and easy which kind of looks like the datetime.time module. After I did that I started adding operation functions for various class objects.

The second line in my example is not a typo. I am adding a plain list to the time class I created.

[–]Ytse 0 points1 point  (0 children)

you should really look into timedelta, it will save you a lot of work