A
aidy
Hi,
I am trying to get a date a year from today. I have got this which
gives me a day in advance
t = Time.now;t1 = t + 100000
p end_date = t1.localtime.strftime("%d/%m/%Y")
I have looked in 'The Ruby Way' and it provides a 'Converting Between
Seconds and Larger Units' method.
Surely there must be a better way?
Aidy
I am trying to get a date a year from today. I have got this which
gives me a day in advance
t = Time.now;t1 = t + 100000
p end_date = t1.localtime.strftime("%d/%m/%Y")
I have looked in 'The Ruby Way' and it provides a 'Converting Between
Seconds and Larger Units' method.
Surely there must be a better way?
Aidy