util.d.ts 686 B

12345678910111213141516
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. /**
  6. * Compatible translate the moment-like format pattern to angular's pattern
  7. * Why? For now, we need to support the existing language formats in AntD, and AntD uses the default temporal syntax.
  8. *
  9. * TODO: compare and complete all format patterns
  10. * Each format docs as below:
  11. *
  12. * @link https://momentjs.com/docs/#/displaying/format/
  13. * @link https://angular.io/api/common/DatePipe#description
  14. * @param format input format pattern
  15. */
  16. export declare function transCompatFormat(format: string): string;