Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function syncWallTimeToUTC(date, timeZone) {
let converted = null;
// eslint-disable-next-line new-cap
getLocalizationService().WallTimeToUTC(date, timeZone, result => {
converted = result;
});
return converted;
}
export function duration(value, unit) {
return getLocalizationService().duration(value, unit);
}
export function getNumberFormat(format) {
return getLocalizationService().getNumberFormat(format);
}
export function formatTime(timeString, format) {
return getLocalizationService().formatTime(timeString, format);
}
export function parseDateTimeISO8601(dateTimeString) {
return getLocalizationService().parseDateTimeISO8601(dateTimeString);
}
export function parseDateTime(dateTimeString, format, strictMode) {
return getLocalizationService().parseDateTime(
dateTimeString,
format,
strictMode
);
}
export function toOtherCalendar(date) {
return getLocalizationService().translateToOtherCalendar(date);
}
export function formatDateUTC(dateString, format, locale) {
return getLocalizationService().formatDateUTC(dateString, format, locale);
}
export function fromLocalizedDigits(input) {
return getLocalizationService().translateFromLocalizedDigits(input);
}
export function toLocalizedDigits(input) {
return getLocalizationService().translateToLocalizedDigits(input);
}