Library API
    Preparing search index...

    Function formatDayPeriod

    • Extracts the localized day-period label from a formatted date.

      Parameters

      • value: number

        The epoch time value to format

      • Optionallocale: LocaleInput

        The locale used for formatting

      • Optionaloptions: DateTimeFormatOptions

        Date-time formatting options

      Returns string | undefined

      The localized day-period label, or undefined if formatting fails or no day-period part exists