1
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 fifteen (01:15)?
I thought to convert to decimal, so the input of 1:15 by the user would have to be converted to 1.25 (one plus a 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.
Man, I think in this case, the ideal would be you working with minutes. When you need them, convert into hours and Alz. Hugs.
– emanuelsn