1.0.7 • Published 7 years ago

time-since v1.0.7

Weekly downloads
219
License
Apache-2.0
Repository
github
Last release
7 years ago

time-since

Introduction

This is a Node.js based module to convert timestamps to meaningful seconds, minutes, hours, days and weeks.

Dependencies

None, apart from Node.js itself.

Examples

Do an npm install time-since.

var time = require("time-since");

var epoch = new Date(0);
console.log("ms: " + time.since(epoch).millis());
console.log("s: " + time.since(epoch).secs());
console.log("m: " + time.since(epoch).mins());
console.log("h: " + time.since(epoch).hours());
console.log("d: " + time.since(epoch).days());
console.log("w: " + time.since(epoch).weeks());

License

Apache 2 (go mad)

1.0.7

7 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.0

10 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago