DateTimeInterval class

Bug #51845 reported by wouter bolsterlee
2
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: core
Revision history for this message
wouter bolsterlee (wbolster) wrote :

I found a volunteer! ;-)

Changed in anewt:
assignee: nobody → vloris
importance: Untriaged → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
wouter bolsterlee (wbolster) wrote :

Floris, any progress/ideas/inspiration?

tags: added: core
removed: datetime
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.