Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails difference in minutes between 2 datetime

created = article.created_at
updated = article.updated_at
minutes = ((updated - created) * 24 * 60).to_i
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #difference #minutes #datetime
ADD COMMENT
Topic
Name
9+3 =