TAMS Club Calendar Frontend Documentation
    Preparing search index...

    Function formatEventTime

    • Formats the time of the event. Includes an end time if not the same as the start time.

      Parameters

      • event: CalEvent

        The event object

      • noEnd: boolean = false

        If true, will not show an end time

      • checkSame: boolean = false

        If true, will check to see if start !== end and return the end time. This is used for the EventDisplay component

      Returns string

      The formatted time for the event in the format [h:mma - h:mma]