Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores times for classes, including a start time, end time, and day of week.

Hierarchy

  • CourseTime

Index

Constructors

constructor

Properties

day

day: number

endtime

endtime: Time

End time

starttime

starttime: Time

Start time

Methods

formattedString

  • formattedString(): string
  • returns the course's duration formatted as "hh:mm am ~ hh:mm pm"

    Returns string

getDayName

  • getDayName(): string
  • Return the day of week this class is on, but as a human-friendly name.

    Returns string

overlaps

  • Compare two CourseTimes and determine whether the two overlap. eg, one from 10 to 12 overlaps with one from 11 to 13.

    Parameters

    • other: CourseTime

      The CourseTime to compare with.

    Returns boolean

Generated using TypeDoc