/** * This function removes the offset of a ISO date string. This needs to be done to make sure that the offset is ignored. * If it is not removed the time would be converted to the browsers local time. * Example: "2022-08-29T09:30:00+03:00" would be changed to "2022-08-29T08:30:00+02:00" --> not the desired outcome, as we want to use the time in the timezone and not the local time. * * After the offset is removed a new date is created in the browsers local time. This ensures that the time of the ISO date string is displayed and not a converted time. * Example: "2022-08-29T09:30:00+03:00" would be changed to "2022-08-29T09:30:00+02:00" --> desired outcome * Attention: This function does not convert the time to the correct time in the local timezone. It is a workaround to make sure, that the given time is displayed without being converted. * * Offset: Difference between the timezone and Coordinated Universal Time. * * @param isoTime - the iso time with the timezone offset * @returns a new date with the local timezone with the local offset */ export declare function removeTimezoneFromISOTimeString(isoTime?: string): Date | undefined; /** * This function converts a duration number to date string with specific format * * @param duration - duration in minutes * @param currentLanguage - currentLanguage * @returns an Object with two strings in the format "dd hh mm" (short) an "x Day(s) x Hour(s) x Minute(s) (long)" * */ export declare const durationToTime: (duration: number, currentLanguage?: string) => { short: string; long: string; }; //# sourceMappingURL=date-helper.d.ts.map