We usually use DateTime to record a specific moment. But what if I want to record that an event lasted half an hour (00:30) or an hour and a quarter (01:15)?
I thought of converting to decimal, so the input of 01:15 by the user would have to be converted to 1.25 (one plus one quarter of an hour) or 00:30 to 0.5.
Is this the best way or is there something more appropriate?
I'm using RubyOnRails and PostgresSQL.