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-publish](https://github.com/tsdotnet/date-time/workflows/npm-publish/badge.svg) [![npm version](htt

20 lines (19 loc) 722 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import { ResettableLazy } from '@tsdotnet/lazy'; import type TimeMeasurement from './TimeMeasurement'; import TimeUnit from './TimeUnit'; 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; }