Answers for "rails difference in minutes between 2 datetime"

0

rails difference in minutes between 2 datetime

created = article.created_at
updated = article.updated_at
minutes = ((updated - created) * 24 * 60).to_i
Posted by: Guest on June-10-2021

Code answers related to "rails difference in minutes between 2 datetime"

Browse Popular Code Answers by Language