source: trip-planner-front/node_modules/@angular/material/core/datetime/native-date-adapter.d.ts.map

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.5 KB
Line 
1{"version":3,"file":"native-date-adapter.d.ts","sources":["native-date-adapter.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Platform } from '@angular/cdk/platform';\nimport { DateAdapter } from './date-adapter';\n/** Adapts the native JS Date for use with cdk-based components that work with dates. */\nexport declare class NativeDateAdapter extends DateAdapter<Date> {\n /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors. */\n private readonly _clampDate;\n /**\n * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.\n * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off\n * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`\n * will produce `'8/13/1800'`.\n *\n * TODO(mmalerba): drop this variable. It's not being used in the code right now. We're now\n * getting the string representation of a Date object from its utc representation. We're keeping\n * it here for sometime, just for precaution, in case we decide to revert some of these changes\n * though.\n */\n useUtcForDisplay: boolean;\n constructor(matDateLocale: string, platform: Platform);\n getYear(date: Date): number;\n getMonth(date: Date): number;\n getDate(date: Date): number;\n getDayOfWeek(date: Date): number;\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[];\n getDateNames(): string[];\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];\n getYearName(date: Date): string;\n getFirstDayOfWeek(): number;\n getNumDaysInMonth(date: Date): number;\n clone(date: Date): Date;\n createDate(year: number, month: number, date: number): Date;\n today(): Date;\n parse(value: any): Date | null;\n format(date: Date, displayFormat: Object): string;\n addCalendarYears(date: Date, years: number): Date;\n addCalendarMonths(date: Date, months: number): Date;\n addCalendarDays(date: Date, days: number): Date;\n toIso8601(date: Date): string;\n /**\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n * invalid date for all other values.\n */\n deserialize(value: any): Date | null;\n isDateInstance(obj: any): boolean;\n isValid(date: Date): boolean;\n invalid(): Date;\n /** Creates a date but allows the month and date to overflow. */\n private _createDateWithOverflow;\n /**\n * Pads a number to make it two digits.\n * @param n The number to pad.\n * @returns The padded number.\n */\n private _2digit;\n /**\n * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while\n * other browsers do not. We remove them to make output consistent and because they interfere with\n * date parsing.\n * @param str The string to strip direction characters from.\n * @returns The stripped string.\n */\n private _stripDirectionalityCharacters;\n /**\n * When converting Date object to string, javascript built-in functions may return wrong\n * results because it applies its internal DST rules. The DST rules around the world change\n * very frequently, and the current valid rule is not always valid in previous years though.\n * We work around this problem building a new Date object which has its internal UTC\n * representation with the local date and time.\n * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have\n * timeZone set to 'utc' to work fine.\n * @param date Date from which we want to get the string representation according to dtf\n * @returns A Date object with its UTC representation based on the passed in date info\n */\n private _format;\n}\n"]}
Note: See TracBrowser for help on using the repository browser.