I'm doing a program in which you must enter a birth date and take the
date of the PC, and you have to determine the day between those two
dates which accounts for half of his life.
In conclusion, I see a way to do it, and wanted to know if there is any
function that divides dates eg (2/20/2012) / (5/15/1998) and I calculate
what date between these two dates or can be implemented in another way
than using a specific function of Ruby.
I'm assuming you already checked out the Date class from the standard
library I mentioned in the last thread.
Well, you don't want to divide dates but rather the *difference* between
those dates and then add it do the earlier date (or subtract it from the
larger). You can directly translate this into Ruby code: