Time.now - time.at

Hello frnds

I want to find out the difference between Time.now and Time.at where
Time.at is the unix time eg:- Time.at(1186113109) and them compare that
if the difference is greater than 1 day then certain task should be
done.

Can neone tell me how to do it

Thanks

Dhaval P.

Dhaval P. wrote:

Hello frnds

I want to find out the difference between Time.now and Time.at where
Time.at is the unix time eg:- Time.at(1186113109) and them compare that
if the difference is greater than 1 day then certain task should be
done.

Can neone tell me how to do it

Thanks

Dhaval P.

if (Time.now - Time.at(1186113109)) > 1.day

do your stuff

end

Greetings
Skade

Thanks a lot Florian for your reply.