@tsdotnet/date-time
Version:
[](https://github.com/tsdotnet/date-time/blob/master/LICENSE) [](https://www.npmjs
20 lines (19 loc) • 728 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* @license MIT
*/
import { ResettableLazy } from '@tsdotnet/lazy';
import type TimeMeasurement from './TimeMeasurement.js';
import TimeUnit from './TimeUnit.js';
export default class TimeQuantity {
protected _quantity: number;
constructor(_quantity?: number);
static getTotalMillisecondsFrom(values: Partial<TimeMeasurement>): number;
get direction(): number;
protected _total: ResettableLazy<Readonly<TimeMeasurement>>;
get total(): Readonly<TimeMeasurement>;
getTotalMilliseconds(): number;
equals(other: TimeQuantity): boolean;
compareTo(other: TimeQuantity): number;
getTotal(units: TimeUnit.UnitType): number;
}