UNPKG

timezonecomplete

Version:

DateTime, TimeZone, Duration and Period library aimed at providing a consistent and complete date-time interface, away from the original JavaScript Date class.

24 lines (23 loc) 840 B
/** * Copyright(c) 2014 ABB Switzerland Ltd. * * String utility functions */ /** * Pad a string by adding characters to the beginning. * @param s the string to pad * @param width the desired minimum string width * @param char the single character to pad with * @return the padded string * @throws timezonecomplete.Argument.Width if width is not an integer number >= 0 */ export declare function padLeft(s: string, width: number, char: string): string; /** * Pad a string by adding characters to the end. * @param s the string to pad * @param width the desired minimum string width * @param char the single character to pad with * @return the padded string * @throws timezonecomplete.Argument.Width if width is not an integer number >= 0 */ export declare function padRight(s: string, width: number, char: string): string;