Skip to content

skovalyov/time-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

A method to format the span between a time and now

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published