ruby datetime difference in minutes code example Example: ruby date difference in days endDate - beginDate