a zip code crypto-currency system good for red ONLY

datetime-util.d.ts 1.5KB

12345678910111213141516171819202122232425262728293031
  1. export declare function renderDateTime(template: string, value: DateTimeData, locale: LocaleData): string;
  2. export declare function renderTextFormat(format: string, value: any, date: DateTimeData, locale: LocaleData): string;
  3. export declare function dateValueRange(format: string, min: DateTimeData, max: DateTimeData): any[];
  4. export declare function dateSortValue(year: number, month: number, day: number, hour?: number, minute?: number): number;
  5. export declare function dateDataSortValue(data: DateTimeData): number;
  6. export declare function daysInMonth(month: number, year: number): number;
  7. export declare function isLeapYear(year: number): boolean;
  8. export declare function parseDate(val: any): DateTimeData;
  9. export declare function compareDates(d1: DateTimeData, d2: DateTimeData): number;
  10. export declare function updateDate(existingData: DateTimeData, newData: any): boolean;
  11. export declare function parseTemplate(template: string): string[];
  12. export declare function getValueFromFormat(date: DateTimeData, format: string): any;
  13. export declare function convertFormatToKey(format: string): string;
  14. export declare function convertDataToISO(data: DateTimeData): string;
  15. export interface DateTimeData {
  16. year?: number;
  17. month?: number;
  18. day?: number;
  19. hour?: number;
  20. minute?: number;
  21. second?: number;
  22. millisecond?: number;
  23. tzOffset?: number;
  24. }
  25. export interface LocaleData {
  26. monthNames?: string[];
  27. monthShortNames?: string[];
  28. dayNames?: string[];
  29. dayShortNames?: string[];
  30. }