measurement-toolkit › "Time/IUnitOfTime" › IUnitOfTime
Interface: IUnitOfTime
Hierarchy
↳ IUnitOfTime
Implemented by
- Attosecond
- Centisecond
- Day
- Decasecond
- Decisecond
- Exasecond
- Femtosecond
- Gigasecond
- Hectosecond
- Hour
- Hour
- Kilosecond
- Megasecond
- Microsecond
- Millisecond
- Minute
- Nanosecond
- Petasecond
- Picosecond
- Second
- SiDerivedUnit
- Terasecond
- Yoctosecond
- Yottasecond
- Zeptosecond
- Zettasecond
Index
Properties
Methods
Properties
symbol
• symbol: string
Inherited from ISimpleUnit.symbol
Defined in ISimpleUnit.ts:13
to
• to: object
Overrides ISimpleUnit.to
Defined in Time/IUnitOfTime.ts:12
Type declaration:
- [ key: string]: function
▸ (): IUnitOfTime
value
• value: number
Inherited from ISimpleUnit.value
Defined in ISimpleUnit.ts:12
Methods
add
▸ add(unit
: IUnit): this
Defined in IUnit.ts:12
Parameters:
Name | Type |
---|---|
unit |
IUnit |
Returns: this
divideBy
▸ divideBy(unit
: IUnit): this
Defined in IUnit.ts:14
Parameters:
Name | Type |
---|---|
unit |
IUnit |
Returns: this
getConverters
▸ getConverters(): object
Overrides ISimpleUnit.getConverters
Defined in Time/IUnitOfTime.ts:13
Returns: object
- [ key: string]: function
▸ (): IUnitOfTime
multiply
▸ multiply(unit
: IUnit): this
Defined in IUnit.ts:16
Parameters:
Name | Type |
---|---|
unit |
IUnit |
Returns: this
percentageOf
▸ percentageOf(unit
: IUnit): this
Inherited from IUnit.percentageOf
Defined in IUnit.ts:18
Parameters:
Name | Type |
---|---|
unit |
IUnit |
Returns: this
subtract
▸ subtract(unit
: IUnit): this
Defined in IUnit.ts:20
Parameters:
Name | Type |
---|---|
unit |
IUnit |
Returns: this
toString
▸ toString(): string
Defined in IUnit.ts:22
Returns: string