1.0.7 • Published 5 years ago

time-since v1.0.7

Weekly downloads
219
License
Apache-2.0
Repository
github
Last release
5 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

5 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.0

8 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago