/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ /** * Compatible translate the moment-like format pattern to angular's pattern * Why? For now, we need to support the existing language formats in AntD, and AntD uses the default temporal syntax. * * TODO: compare and complete all format patterns * Each format docs as below: * @link https://momentjs.com/docs/#/displaying/format/ * @link https://angular.io/api/common/DatePipe#description * @param format input format pattern */ export declare function transCompatFormat(format: string): string; /** * đổi ngày dương lịch sang ngày âm lịch. giá trị lunarLeap trả về: 0 - năm không nhuận, 1 - năm nhuận * @param dd ngày dương lịch * @param mm tháng dương lịch, bắt đầu từ 1 * @param yy năm dương lịch * @param timeZone timezone sử dụng để tính */ export declare function convertSolar2Lunar(dd: number, mm: number, yy: number, timeZone: number): { lunarDay: number; lunarMonth: number; lunarYear: number; lunarLeap: number; }; /** * đổi ngày âm lịch sang ngày dương lịch * @param lunarDay ngày âm lịch * @param lunarMonth tháng âm lịch, bắt đầu từ 1 * @param lunarYear năm âm lịch * @param lunarLeap 0 - năm không nhuận, 1 - năm nhuận * @param timeZone timezone của client * @returns [day, month, year] */ export declare function convertLunar2Solar(lunarDay: number, lunarMonth: number, lunarYear: number, lunarLeap: number, timeZone: number): number[];