DateTimeInterval class
Bug #51845 reported by
wouter bolsterlee
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Confirmed
|
Wishlist
|
Floris Kruisselbrink (vloris) |
Bug Description
The datetime module should have a DateTimeInterval class, much like DateTimeAtom, but with a slightly different render() method. ISO 8601 interval output would be ok, and a human readable string too.
Furthermore, the databasemodule should convert interval columns (PostgreSQL) to DateTimeInterval instances, similar to the date/datetime column conversion.
For extra bonus points: API to add/subtract intervals to dates. (using timestamps might be a simple way to implement this without too much trouble).
tags: |
added: core removed: datetime |
To post a comment you must log in.
I found a volunteer! ;-)