interval-nl

Convert strings of natural language intervals to seconds.

node-interval-nl

A package for converting natural language intervals (e.g "1 week 10 seconds ago") into seconds. Similar to the SQL keyword INTERVAL.

Appending ago to an interval will negate it.

> var interval = require("interval-nl");
> interval("1 week 10 seconds ago");
-604810