@tubular/time
Version:
Date/time, IANA timezones, leap seconds, TAI/UTC conversions, calendar with settable Julian/Gregorian switchover
12 lines (10 loc) • 442 B
TypeScript
// noinspection JSUnusedGlobalSymbols
interface String {
/**
* Gets a substring beginning at the specified location and having the specified length.
* (deprecation removed)
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
}