export declare const MILLISECONDS_IN_DAY = 86400000; export declare const MILLISECONDS_IN_SECOND = 1000; export declare const MONTH_SHORT_NAME_DAY_YEAR = "ll"; declare const unitSize: { second: number; minute: number; hour: number; day: number; week: number; month: number; year: number; }; export declare const getDifference: (dateA: Date, dateB: Date, unit: keyof typeof unitSize) => number; export declare const yearMonthDayTimeFormat = "YYYY-MM-DDTHH:mm:ss"; /** * Rolls the date representation into the time zone as an ISO string * @param dateRepresentation {mixed} Can either be a JS Date Object or date string * @param timezone {string} The full timezone name to roll the date to (ex: Asia/Tokyo) * @return {string} The moment.tz date string in the new time zone in ISO 8601 format */ export declare const rollToTzAsIsoString: (date: Date | string, timezone: string) => any; /** * Rolls the date representation into the time zone * @param dateRepresentation {mixed} Can either be a JS Date Object or date string * @param timezone {string} The full timezone name to roll the date to (ex: Asia/Tokyo) * @return {string} The moment.tz object containing the date in the new time zone */ export declare const rollToTz: (dateRepresentation: Date | string, timezone?: string) => any; /** * Take a date object, roll it to the specified timezone. * Take that date/time string and append the system time zone * @param date {mixed} Can either be a JS Date Object or date string * @param timezone {string} The full timezone name to roll the date to (ex: Asia/Tokyo) * @returns {mixed} Either the coverted date for editing as a Date object or the date parameter if it is not a JS Date */ export declare const convertForEditing: (date: Date | string, timezone: string) => any; /** * Take the date object, grab the date/time without timezone, * append the specified time zone to that instant, then roll it to * the browser timezone (aka date object) * @param date {mixed} Can either be a JS Date Object or date string * @param timezone {string} The full timezone name to roll the date to (ex: Asia/Tokyo) * @return {mixed} Either the converted date from editing or the date parameter if it is not a JS Date */ export declare const convertFromEditing: (date: Date | string, timezone: string) => any; /** * Take a date object and convert it to a formatted string representation * in the user's workspace timezone. Will return date passed in if not an * instance of Date. * * @param date {Date} Javascript Date object * @param timezone {String} this should be the workspace timezone, which can be gotten from the UserContextReducer.getDateTimeConfiguration * @return {mixed} String date representation with timezone offset */ export declare const convertForWsapi: (date: Date | string, timezone?: string) => any; /** * Formats date using date format configured within window.Rally. * * @param {Date} inputDate The plain JS date to convert from * @param {Boolean} showTimeAndTimezone true to show time and time zone abbreviation (ex. 12:00:00 PM MST) * @return {String} formattedDate */ export declare const formatDate: (inputDate: Date | string, showTimeAndTimezone?: boolean) => any; export declare const convertJodaFormatToMomentFormat: (format: string) => string; export declare const startOfDayInLocalTimezoneFromWsIsoString: (isoString: string, wsTimezone: string) => any; export declare const endOfDayInLocalTimezoneFromWsIsoString: (isoString: string, wsTimezone: string, subtractSec?: number) => any; export declare const isBetweenDates: (date: Date, start: Date, end: Date) => any; export declare const isDateParsable: (dt: string | Date) => boolean; export declare const isDate: (date: unknown) => boolean; export {};