@ilihub/week
TypeScript functions for converting day to other time units.

Installation
pnpm add @ilihub/week
npm install @ilihub/week
yarn add @ilihub/week
Usage
import { Week } from "@ilihub/week";
const week = new Week(1);
const milliseconds = week.toMillisecond();
console.log(milliseconds);
const seconds = week.toSecond();
console.log(seconds);
const minutes = week.toMinute();
console.log(minutes);
const hours = week.toHour();
console.log(hours);
const days = week.toDay();
console.log(days);
const months = week.toMonth();
console.log(months);
const years = week.toYear();
console.log(years);
const decades = week.toDecade();
console.log(decades);
const centuries = week.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.
