Thanks for your help everyone.
I ended up using Chronic Duration gem.
https://github.com/hpoydar/chronic_duration
On Sunday, September 22, 2013 3:58:58 PM UTC+8, Colin Law wrote:
On 20 September 2013 08:30, Fai Wong wong...@gmail.com javascript:
wrote:
If I store 1.month as a string in
On 20 September 2013 08:30, Fai Wong wongw...@gmail.com wrote:
If I store 1.month as a string in the database, how do I convert 1.month
into 1.month?
This way I can use the 1.month value stored in database to perform the
following calculation.
Time.now + 1.month
If you really feel you need
If I store 1.month as a string in the database, how do I convert 1.month
into 1.month?
This way I can use the 1.month value stored in database to perform the
following calculation.
Time.now + 1.month
--
You received this message because you are subscribed to the Google Groups Ruby
on
3 matches
Mail list logo