MCPcopy Create free account
hub / github.com/UI5/webcomponents / _formatPattern

Method _formatPattern

packages/main/src/DateTimePicker.ts:246–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 }
245
246 get _formatPattern() {
247 const formatPattern = this.formatPattern || this.valueFormat || "medium";
248 const hasHours = !!(formatPattern || "").match(/H/i);
249 const fallback = !formatPattern || !hasHours;
250
251 const localeData = getCachedLocaleDataInstance(getLocale());
252 return fallback ? localeData.getCombinedDateTimePattern("medium", "medium", this._primaryCalendarType) : (formatPattern || "");
253 }
254
255 get _calendarTimestamp() {
256 return this._previewValues.calendarTimestamp ? this._previewValues.calendarTimestamp : super._calendarTimestamp;

Callers

nothing calls this directly

Calls 2

getLocaleFunction · 0.85

Tested by

no test coverage detected