dive-deco
Version:
A TypeScript implementation of decompression calculation algorithms for scuba diving, featuring Bühlmann ZH-L16C algorithm with gradient factors, gas management, and oxygen toxicity tracking.
21 lines (20 loc) • 640 B
TypeScript
export declare class Time {
private s;
constructor(seconds?: number);
static zero(): Time;
static fromSeconds(val: number): Time;
static fromMinutes(val: number): Time;
asSeconds(): number;
asMinutes(): number;
add(other: Time): Time;
subtract(other: Time): Time;
multiply(other: Time | number): Time;
divide(other: Time | number): Time;
addAssign(other: Time): void;
equals(other: Time): boolean;
lessThan(other: Time): boolean;
lessThanOrEqual(other: Time): boolean;
greaterThan(other: Time): boolean;
greaterThanOrEqual(other: Time): boolean;
toString(): string;
}