var period = require("period");
console.log(period(3600).getLength()); // 1
console.log(period(3600).getSingular()); // "hour"
console.log(period(3600).getPlural()); // "hours"
console.log(period(24, "hour").getLength()); // 1
console.log(period(24, "hour").getSingular()); // "day"
console.log(period(7, "day").getLength()); // 1
console.log(period(7, "day").getPlural()); // "weeks"
This repository was archived by the owner on Jul 12, 2018. It is now read-only.
howsecureismypassword/modules-period
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|