aws-cdk
Version:
CDK Toolkit, the command line tool for CDK apps
11 lines (10 loc) • 369 B
TypeScript
/**
* Pad 's' on the left with 'char' until it is n characters wide
*/
export declare function leftPad(s: string, n: number, char: string): string;
/**
* Formats time in milliseconds (which we get from 'Date.getTime()')
* to a human-readable time; returns time in seconds rounded to 2
* decimal places.
*/
export declare function formatTime(num: number): number;