/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export declare const ISO8601_DATE_REGEX: RegExp; /** * @ngModule CommonModule * @description * * Formats a date according to locale rules. * * Where: * - `value` is a Date, a number (milliseconds since UTC epoch) or an ISO string * (https://www.w3.org/TR/NOTE-datetime). * - `format` indicates which date/time components to include. See {@link DatePipe} for more * details. * - `locale` is a `string` defining the locale to use. * - `timezone` to be used for formatting. It understands UTC/GMT and the continental US time zone * abbreviations, but for general use, use a time zone offset (e.g. `'+0430'`). * If not specified, host system settings are used. * * See {@link DatePipe} for more details. */ export declare function formatDate(value: string | number | Date, format: string, locale: string, timezone?: string): string; /** * Converts a value to date. * * Supported input formats: * - `Date` * - number: timestamp * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). * Note: ISO strings without time return a date without timeoffset. * * Throws if unable to convert to a date. */ export declare function toDate(value: string | number | Date): Date; /** * Converts a date in ISO8601 to a Date. * Used instead of `Date.parse` because of browser discrepancies. */ export declare function isoStringToDate(match: RegExpMatchArray): Date; export declare function isDate(value: any): value is Date;