API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTime
Time-duration value object stored internally in milliseconds. Provides unit-converted accessors (`seconds`, `minutes`, `hours`) and arithmetic helpers (Time.add, Time.subtract, Time.addTime). Constants on the class hold canonical durations: Time.zero, Time.oneSecond, Time.oneMinute, Time.oneHour, plus the TimeInterval multipliers used by the `factor` parameter. `Time.temp` is a shared scratch instance for hot paths — do not store the reference across calls.
import { Time } from '@codexo/exojs' Time-duration value object stored internally in milliseconds. Provides unit-converted accessors (`seconds`, `minutes`, `hours`) and arithmetic helpers (Time.add, Time.subtract, Time.addTime).
Constants on the class hold canonical durations: Time.zero, Time.oneSecond, Time.oneMinute, Time.oneHour, plus the TimeInterval multipliers used by the `factor` parameter.
`Time.temp` is a shared scratch instance for hot paths — do not store the reference across calls.
new(time: number, factor: TimeInterval): Time add(value: number, factor: TimeInterval): this addTime(time: Time): this clone(): this copy(time: Time): this destroy(): void equals(__namedParameters: Partial<Time>): boolean greaterThan(time: Time): boolean lessThan(time: Time): boolean set(time: number, factor: TimeInterval): this setHours(hours: number): this setMilliseconds(milliseconds: number): this setMinutes(minutes: number): this setSeconds(seconds: number): this subtract(value: number, factor: TimeInterval): this subtractTime(time: Time): this hours: TimeInterval milliseconds: TimeInterval minutes: TimeInterval oneHour: Time oneMillisecond: Time oneMinute: Time oneSecond: Time seconds: TimeInterval zero: Time hours: number milliseconds: number minutes: number seconds: number temp: Time