UNPKG

measure-x

Version:

A lightweight and efficient **conversion utility** that supports various **number system conversions**, unit conversions, and more. 🚀

16 lines (14 loc) • 379 B
import { TimeUnit } from "./types"; export const TIME_CONVERSION: Record<TimeUnit, number> = { Millisecond: 0.001, Microsecond: 0.000001, Nanosecond: 0.000000001, Picosecond: 0.000000000001, Second: 1, Minute: 60, Hour: 3600, Day: 86400, Week: 604800, Month: 2629800, // Average month length in seconds Year: 31557600, // Average year length in seconds };