A method to format the span between a time and now
CoffeeScript
Latest commit d748bb6 Jun 5, 2013 @skovalyov Update README.md
Permalink
Failed to load latest commit information.
src Initial commit Feb 7, 2013
test Initial commit Feb 7, 2013
.gitignore Initial commit Feb 7, 2013
.npmignore Initial commit Feb 7, 2013
.travis.yml Initial commit Feb 7, 2013
LICENSE Initial commit Feb 7, 2013
README.md Update README.md Jun 5, 2013
package.json Initial commit Feb 7, 2013

README.md

Time Format

Build Status

A simple method to format the difference between two timestamps.

For more complex cases and flexibility use libraries like Moment.js.

Installation

$ npm install time-format

API

require('time-format').span(date, now = new Date())