@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
23 lines • 851 B
TypeScript
import SiUnit from "./SiUnit.js";
/**
* ! If you are ever in need of using this class, please PLEASE refactor it.
* ! Just do it. I did not have the time to do it myself and did not want to break compatibility with the old Margot APIs.
*/
export default class TimeUnit extends SiUnit {
constructor(timeModifier: string);
/**
* Factory methods to create TimeUnits.
* */
static nano: () => TimeUnit;
static micro: () => TimeUnit;
static milli: () => TimeUnit;
static second: () => TimeUnit;
static minute: () => TimeUnit;
static hour: () => TimeUnit;
static day: () => TimeUnit;
/**
* Override that adds support to time-specific units (days, hours, minutes). Discards parameter 'unitHasBaseName'.
*/
convert(value: number, unit: string): number;
}
//# sourceMappingURL=TimeUnit.d.ts.map