@versatiledatakit/data-pipelines
Version:
Data Pipelines help Data Engineers develop, deploy, run, and manage data processing workloads (called 'Data Job')
29 lines (28 loc) • 1.09 kB
TypeScript
import { PipeTransform } from '@angular/core';
import { DataJobExecution } from '../../model';
import * as i0 from "@angular/core";
/**
* Format Delta Pipe formats the delta of the execution start and end Time.
* The format is dynamic and contains generaly the last two leading fragment of the duration.
*
* For example:
*
* 1: If the duration is less than 1 min, the format is `${seconds}s`
*
* 2: If the duration is between 1 min and 59 mins, the format is `${minutes}m ${seconds}s`
*
* 3: If the duration is between 1 hour and 1 day, the format is `${hours}h ${minutes}m`
*
* 4: If the duration is more than 1 day, the format is `${days}d ${hours}h`
*/
export declare class FormatDeltaPipe implements PipeTransform {
static formatDelta(delta: number): string;
/**
* @inheritDoc
*/
transform(execution: DataJobExecution): string;
private static _getStartTime;
private static _getEndTime;
static ɵfac: i0.ɵɵFactoryDeclaration<FormatDeltaPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<FormatDeltaPipe, "formatDelta">;
}