UNPKG

ngx-video-timeline

Version:
19 lines (18 loc) 663 B
/** * A utility class for working with dates. */ export declare class DateUtil { /** * Formats the given date according to the specified format. * @param date The date to format. * @param format The format string, using the following placeholders: * - YYYY: four-digit year * - MM: two-digit month (zero-padded) * - DD: two-digit day of month (zero-padded) * - HH: two-digit hour (zero-padded, 24-hour format) * - mm: two-digit minute (zero-padded) * - ss: two-digit second (zero-padded) * @returns The formatted date string. */ static formatDate(date: Date, format: string): string; }