Circle V2 API Docs
    Preparing search index...

    Function formatHour

    • Formats a 0-23 hour-of-day as a 12-hour clock label with AM/PM.

      Examples: formatHour(0) -> "12 AM" formatHour(7) -> "7 AM" formatHour(12) -> "12 PM" formatHour(15) -> "3 PM"

      Parameters

      • hour: number

      Returns string