UNPKG

@tsdotnet/date-time

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/date-time/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/@tsdotnet/date-time.svg?style=flat-square)](https://www.npmjs

20 lines (19 loc) 728 B
/*! * @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; }