[Python-Dev] Issue5434: datetime.monthdelta (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Apr 16 17:12:26 CEST 2009
- Previous message: [Python-Dev] Issue5434: datetime.monthdelta
- Next message: [Python-Dev] Issue5434: datetime.monthdelta
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Paul Moore <p.f.moore gmail.com> writes:
Oh, certainly! But in the absence of "intuitive", I've found in the past that "standardised" is often better than nothing (For example, I use Oracle's addmonths function fairly often - it's not perfect, and not always intuitive, but at least it's well-defined in the corner cases, and fine for "normal" use).
I think something like "date.add_months()" would be better than the proposed monthdelta. The monthdelta proposal suggests that addition is something well-defined and rigourous, which is not really the case here (for example, if you add a monthdelta and then substract it again, I'm not sure you always get back the original date).
Regards
Antoine.
- Previous message: [Python-Dev] Issue5434: datetime.monthdelta
- Next message: [Python-Dev] Issue5434: datetime.monthdelta
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]