We have a script that saves some rows in a table and one of them is filled with Time.now.to_f. So we have values like:
1330017921.1065
1330018520.80347
Is there a way to convert this to a date directly in MySQL I now I can use Time.at but I need a row mysql query.
i guess this is a microtime.
if you don’t need milliseconds, you could query something like
where rounded_unixtime would be in your case 1330017921