tc.js

@jacobhumston/tc.js


@jacobhumston/tc.js / convert

Function: convert()

convert(time): Record<"microseconds" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years" | "decades" | "centuries", number>

Defined in: convert.ts:8

Converts the provided time values to all available conversions.

Parameters

time

AvailableConversions

The time to convert.

Returns

Record<"microseconds" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years" | "decades" | "centuries", number>

The converted time values.