Time format configuration options for regional time display.

Defines available time formats including 12-hour (AM/PM) and 24-hour formats with their display patterns and behavior.

Example

const timeFormats: TimeFormatOptions[] = [
{ id: '12h', format: 'hh:mm:ss a', ampm: true }, // 3:45:30 PM
{ id: '24h', format: 'HH:mm:ss', ampm: false } // 15:45:30
];
interface TimeFormatOptions {
    ampm: boolean;
}

Hierarchy

  • FormatOptions
    • TimeFormatOptions

Properties

Properties

ampm: boolean

True if using 12-hour format with AM/PM, false for 24-hour format