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

17 lines (16 loc) 583 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import TimeQuantity from './TimeQuantity'; import TimeUnit from './TimeUnit'; export default class TimeUnitValue extends TimeQuantity { private _units; constructor(value: number | TimeQuantity, _units: TimeUnit.UnitType); get value(): number; set value(v: number); get units(): TimeUnit.UnitType; static from(value: number | TimeQuantity, units?: TimeUnit.UnitType): TimeUnitValue; getTotalMilliseconds(): number; to(units?: TimeUnit.UnitType): TimeUnitValue; }