Skip to content

turist-cloud/time

Repository files navigation

time

Easily convert time to milliseconds

Examples

import time, { TimeUnit } from "@turist/time"

console.log(time(10, TimeUnit.Minute))
console.log(time(1, TimeUnit.Hour))

Available TimeUnits are Year, Week, Day, Hour, Minute, Second, MilliSecond