@ilihub/decade
TypeScript functions for converting decade to other time units.
Installation
pnpm add @ilihub/decade
npm install @ilihub/decade
yarn add @ilihub/decade
Usage
import { Decade } from "@ilihub/decade";
const decade = new Decade(1);
const milliseconds = decade.toMillisecond();
console.log(milliseconds);
const seconds = decade.toSecond();
console.log(seconds);
const minutes = decade.toMinute();
console.log(minutes);
const hours = decade.toHour();
console.log(hours);
const days = decade.toDay();
console.log(days);
const weeks = decade.toWeek();
console.log(weeks);
const months = decade.toMonth();
console.log(months);
const years = decade.toYear();
console.log(years);
const centuries = decade.toCentury();
console.log(centuries);
Available Functions and Classes
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.