Hey folks
One of my models has a "flight_time" property that I use to store how long - in hours and minutes of elapsed time - a flight took.
I defined it as a DataMapper 'Time' property since that's the closest match I could find...
As I use Postgresql, it basically translates that into a "timestamp without time zone" TYPE.
Only now I realise "how the hell am I going to manipulate this", e.g. adding the total flight time of the last 10 flights. manipulating psql timestamps can be quite mindboggling given what I'm trying to achieve.
Was this a Very Bad Idea? Should I have used two integer values e.g. elapsed_hrs and elapsed-minutes?
Thanks for your help.