@bitblit/ratchet-common
Version:
Common tools for general use
9 lines (8 loc) • 490 B
TypeScript
import { DurationLike } from 'luxon';
export declare class DurationRatchet {
static thinFormatMsDuration(ms: number, includeMS?: boolean): string;
static formatMsDuration(ms: number, includeMS?: boolean): string;
static colonFormatMsDuration(ms: number, includeMS?: boolean): string;
static daysBetween(d1: Date, d2: Date): number;
static createSteps(startEpochMS: number, endEpochMS: number, timezone: string, outputFormat: string, stepUnit: DurationLike): string[];
}