{ "name": "age", "type": "function", "groups": ["Date and Time"], "description": "Returns the difference between two dates or datetimes.
The difference is returned as a Interval and needs to be used with one of the following functions in order to extract useful information:
", "arguments": [ {"arg":"datetime1","description":"a string, date or datetime representing the later date"}, {"arg":"datetime2","description":"a string, date or datetime representing the earlier date"}], "examples": [ { "expression":"day(age('2012-05-12','2012-05-02'))", "returns":"10"}, { "expression":"hour(age('2012-05-12','2012-05-02'))", "returns":"240"} ] }