@ilihub/minute
TypeScript functions for converting minute to other time units.
Installation
pnpm add @ilihub/minute
npm install @ilihub/minute
yarn add @ilihub/minute
Usage
import { Minute } from "@ilihub/minute";
const minute = new Minute(1);
const milliseconds = minute.toMillisecond();
console.log(milliseconds);
const seconds = minute.toSecond();
console.log(seconds);
const hours = minute.toHour();
console.log(hours);
const days = minute.toDay();
console.log(days);
const weeks = minute.toWeek();
console.log(weeks);
const months = minute.toMonth();
console.log(months);
const years = minute.toYear();
console.log(years);
const decades = minute.toDecade();
console.log(decades);
const centuries = minute.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.