Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

support datetime.timedelta as a field type #96

Closed Jaymon closed 1 year ago

Jaymon commented 4 years ago

it could convert it into seconds on the backend:

duration = Field(datetime.timedelta, True)
Jaymon commented 1 year ago

I'm not sure why I wanted this and I can't think of a reason this would be useful today