dimanche 28 juin 2015

Ruby: how to parse string '3 days ago'?

Given an input string like 3 days ago, how can I turn it into a date attribute? Maybe something like DateTime.parse('3 days ago')?

Aucun commentaire:

Enregistrer un commentaire