I'm designing a JSON format for my RESTful service, and want to find a good way to express relative time.
For example: 1 minutes, 2 hours, 3 days, 4 weeks, 5 years
And come up: {"interval": 1, "unit": "day"}
, are there better ways to express this?