[Bug 71124] Add ability to add/subtract months to/from pywikibot.Timestamp
https://bugzilla.wikimedia.org/show_bug.cgi?id=71124 --- Comment #2 from xqt i...@gno.de --- The problem is that months have different days between 28 an 31. Adding 1 month to 7th September should result in 7th October. Adding 7th October should give 7th November as result. dateutils does it. The highest timedelta resolution is days not months. We could use constants from calendar module to implement it. I need it to calculate log entries. mw is able to calculate time stamps by adding months and years, whereas datetime objects aren't able to. -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 71124] Add ability to add/subtract months to/from pywikibot.Timestamp
https://bugzilla.wikimedia.org/show_bug.cgi?id=71124 Maarten Dammers maar...@mdammers.nl changed: What|Removed |Added CC||maar...@mdammers.nl --- Comment #1 from Maarten Dammers maar...@mdammers.nl --- Timestamp is a subclass of datetime.datetime. Can't we just use timedelta? https://docs.python.org/2/library/datetime.html#timedelta-objects This is what I did in newitem.py or do you want to do something else? -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l