TimeAPI is an API to get dates/times from natural language queries based on Chronic.

Examples

See Chronic documentation for more examples.

You can also add a formatting string with the query parameter based on Ruby Time#strftime.
Because '%'s require URI escaping the '\' symbol can be used as a substitute. The following examples are equivalent.

JSONP is also supported for use with javascript. Example usage:

    <script type="text/javascript">
      function myCallback(json) {
        alert(new Date(json.dateString));
      }
    </script>
    <script type="text/javascript" src="http://timeapi.org/utc/now.json?callback=myCallback"></script>
  

A GliderLab Collaboration. Source code is on GitHub. Hosted on Heroku.