Active
Project:
Date
Version:
7.x-2.1
Component:
Date API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2012 at 22:44 UTC
Updated:
18 Feb 2012 at 22:44 UTC
Hi. I recently wrote a class that extends PHP's DateTime object, adding methods for getting/setting/adding/subtracting years, months, days, etc. plus a couple other miscellaneous methods. Then I just discovered that there is already the DateObject class, which also extends DateTime. It doesn't have these methods.
I could extend DateObject instead of DateTime, but I was wondering if you would like me to submit a patch that adds these methods to DateObject? I think you would find them useful.
Cheers,
Mossy