UNPKG

carbonjs

Version:

Javascript date library alternative to Moment.js with the same modern API

10 lines (9 loc) 607 B
import * as Carbon from "./index"; export declare const padStart: (str: string | number, length: number, pad: string) => string; export declare const padZoneStr: (negMinutes: number) => string; export declare const prettyUnit: (unit?: string) => any; export declare const monthDiff: (a: Carbon, b: Carbon) => number; export declare const getShort: (arr: any, index: number, full: any[], length: number) => any; export declare const findShortIndex: (arr: any, short: string, full: any[]) => any; export declare const absFloor: (num: number) => number; export declare const newDate: (...args: any[]) => Date;