This question is the other side of the question asking, \"How do I calculate relative time?\".
Given some human input for a relative time, how can you parse it? By
The ruby folks have attempted to tackle this with a parser called Chronic.
I watched an informative video presentation recently on how the author went about solving this problem.