I have a field TIMESTAMP
in a field of a table in MySQL.
TimeStamp
7/31/2018 5:58
7/31/2018 5:58
7/31/2018 5:57
7/31/2018 5:57
7/31/2018 5:55
I know how to format the field to be able to separate dates and time in Hours, Minutes and Seconds. But I need to convert those three fields to hours.
The operation is like the following:
Hora + (Minutos/60) + (Segundos/3600) = Horas
How can I take this to MySQL? Either with the three fields formatted previously or directly from the field TIMESTAMP
.