Free Handy Tools

Class Schedule Conflict Checker

Day, times, then the name: Tue 14:00-16:00 Physics. Several days on one line are read as several sessions. Add odd weeks, even weeks, Week A or weeks 1-5 and only the weeks that really coincide count as a clash.

Clashes on this timetable

2 clashes

1 of them happen on some weeks and not others.

  • Linear Algebra vs Statistics Lab, Mon 10:0030 min, every week
  • Research Seminar vs Careers Workshop, Thu 16:001 h, odd weeks only
Sessions read7
Hours a week in class10.5
Heaviest dayTue, 4 h
Distinct class names7

What was read from what you pasted

  • Mon 09:00–10:30Linear Algebraevery week, 1 h 30 min
  • Mon 10:00–11:00Statistics Labevery week, 1 h
  • Mon 11:00–12:00French Readingevery week, 1 h
  • Tue 14:00–16:00Physics Practicalodd weeks only, 2 h
  • Tue 15:00–17:00Chemistry Practicaleven weeks only, 2 h
  • Thu 15:00–17:00Research Seminarodd weeks only, 2 h
  • Thu 16:00–17:00Careers Workshopevery week, 1 h

A clash is an overlap of real minutes, so classes that touch end to end are left alone. A session whose finish time is earlier than its start is read as running past midnight and is laid out across the boundary, which is how a late Sunday session can collide with something on Monday morning. Nothing is uploaded: the timetable is parsed in your own browser.

How the Class Schedule Conflict Checker Measures Each Overlap

Each line is read in a fixed order. A week pattern is lifted out first, so that “weeks 1-5” cannot be mistaken for a time range; then the first time range on the line; then every day named on it, each of which becomes a session of its own; and whatever remains is the class name. Times may be written on the 24-hour clock or with am and pm, and a meridiem written once at the end of a range is carried back to its start unless the range crosses noon, so 9-11am is a morning and 11-1pm runs over lunch. A line with no day, no readable range, or the same start and finish is listed as unreadable rather than guessed at.

Every session is then laid out on one continuous week of 10,080 minutes, Monday midnight to Monday midnight, as a span that includes its first minute and excludes its last. Every pair is compared. Their week patterns are intersected before their clocks, and a pair that shares no week is dropped however exactly the times line up. A pair that does share weeks is a clash when the spans have at least one minute in common, and the clash is labelled with the day and time at which that common stretch begins, then listed in order through the week.

The weekly hours add up every session’s length once, ignoring its week pattern, so a fortnightly class counts as if it ran every week. A session that runs past midnight is charged in full to the day it starts when the heaviest day is chosen, and on a tie the earlier day in the week is named.

Scope: one repeating seven-day week of clock times. Travel between buildings, room capacity, examinations, one-off dated events and the first and last weeks of term are all outside it, and a gap of zero minutes is not a clash. Week letters are read as A for odd and B for even, and a class described only as alternating or fortnightly is treated as weekly and flagged. The stretch of a Sunday-night session that spills into Monday keeps the Sunday’s week pattern, although many schemes would number that Monday as the following week.

Placing a session on the week
from   = day × 1440 + start
length = end − start            (end after start)
       = end + 1440 − start     (otherwise: runs past midnight)
span   = [from, from + length), split at 10,080 if it runs over
Weeks two sessions share
every week ∩ P  = P
odd ∩ odd       = odd,   even ∩ even = even
odd ∩ even      = none → never a clash
weeks L ∩ P     = the weeks in L that P also covers
Minutes in common
overlap = Σ max(0, min(endA, endB) − max(startA, startB))
clash   ⇔ shared weeks exist and overlap > 0
Weekly totals
hours a week = Σ length ÷ 60, to at most one decimal place
heaviest day = the day with most minutes, by start day
day
Monday as 0 through Sunday as 6
start, end
minutes past midnight; 24:00 is accepted as an end and counts as 1440
10,080
minutes in a week, 7 × 1440, the length of the single loop every session sits on
[ , )
a half-open span: the first minute is in, the last is out, so 10:00 to 11:00 and 11:00 to 12:00 share nothing
P, L
a week pattern: every week, odd, even, or a listed set of week numbers

Three pasted timetables and the clash each one turns up

Each row header is the timetable exactly as pasted, with a slash standing in for each line break. All three produce one clash, and each for a different reason.

The Monday morning reports thirty minutes between Anatomy and Biochemistry and nothing at all between Biochemistry and Histology, which meet end to end at eleven. The Thursday afternoon has three classes stacked into the same hours, yet the Week A and Week B pair never meet; only the tutorial running in weeks 2 and 4 collides, and only with the even-week class. The overnight pair collide in the first hour of Monday, a clash that a checker comparing one day at a time would never see, and the late session counts all four of its hours towards Sunday.

As the checker reports them, from timetables typed in 24-hour time
Timetable pasted, one line per slashClashes on this timetableClash listedHow long, and in which weeksHours a week in classHeaviest day
Mon 09:00-10:30 Anatomy / Mon 10:00-11:00 Biochemistry / Mon 11:00-12:00 Histology1 clashAnatomy vs Biochemistry, Mon 10:0030 min, every week3.5Mon, 3 h 30 min
Thu 14:00-16:00 Physics Practical (Week A) / Thu 14:00-16:00 Chemistry Practical (Week B) / Thu 15:00-16:00 Optics Tutorial weeks 2,41 clashChemistry Practical vs Optics Tutorial, Thu 15:001 h, weeks 2, 45Thu, 5 h
Sun 21:00-01:00 Observing Session / Mon 00:00-01:30 Radio Station Shift1 clashObserving Session vs Radio Station Shift, Mon 00:001 h, every week5.5Sun, 4 h

Why a timetable hides its own collisions

A registration system will usually stop you booking two things in the same slot, and then it stops looking. What it rarely checks is the timetable you assembled out of one department’s lectures, another’s labs, a language class that runs fortnightly and a society meeting nobody put in the system at all. Those live in different places, arrive at different times of year, and the collision between them shows up in week three when you are standing in the wrong building.

This tool takes the whole thing as text, reads each line into a day, a start, a finish and an optional pattern of weeks, and then compares every pair. Pairwise comparison is dull but complete: with a dozen sessions it makes sixty-six checks, which is exactly sixty-six more than reading down the page tends to manage.

Touching is not overlapping

The single most common false alarm in software of this kind treats a shared boundary as a collision. A seminar finishing at 11:00 and a lecture beginning at 11:00 occupy no minute in common, so they are not reported. They may still be impossible — ten minutes of corridor between two buildings is a real constraint — but that is a travel problem with a different answer, and burying it inside a list of clashes makes the genuine ones harder to see.

Every session is therefore held as a half-open span: it includes its start and excludes its finish. Two spans conflict only when the later start falls strictly before the earlier finish. The check is one comparison, and getting it wrong by a single character turns every back-to-back pair on a full timetable into a warning.

The fortnight problem

Plenty of institutions run sessions on alternating weeks, labelled odd and even, or A and B, or by explicit week numbers on the departmental handout. Two of those can sit on precisely the same hours of the same weekday and never once meet, and a checker that ignores the pattern reports a clash that does not exist. The reverse is worse: a class every week against a class on odd weeks does collide, but only half the time, and that is the kind of thing a person discovers by turning up.

So week patterns are intersected before the clock is consulted. Odd against even yields nothing and the pair is dropped. Anything against a session that runs weekly yields the narrower of the two, and the result is reported with the weeks named, so a fortnightly collision is never quietly presented as a permanent one.

Sessions that run past midnight

An observing session, a radio show, a night shift in a teaching hospital: a finish time earlier than a start time means the session ran through midnight into the following day. Laying every session out on a single 10,080-minute week handles this without special cases, because the span simply continues across the boundary and is split where it crosses. A late Sunday session wraps round to Monday morning and can collide with the first thing there, which is a real result that a day-by-day comparison cannot produce at all.

Reading a timetable into the checker

What layout does each line need?

A day, a time range and a name, in any order that reads naturally: "Tue 14:00-16:00 Physics" and "Physics, Tuesday, 2pm to 4pm" both work. Several days on one line become several sessions, and anything left after the day and the times is taken as the name.

How do I mark a class that only runs some weeks?

Write "odd weeks", "even weeks", "Week A", "Week B" or an explicit list such as "weeks 1-5" or "weeks 2,4,6" anywhere on the line. Saying only that something alternates is not enough to place it, so that case is treated as running every week and flagged rather than guessed at.

Why are two classes with a shared boundary left alone?

Because they share no minutes. Whether you can physically get between them is a question about distance rather than about the timetable, and mixing the two would fill the list with entries that are not conflicts at all. The gap is visible in the parsed sessions if you want to judge it yourself.

Does the timetable I paste go anywhere?

No. The text is parsed by JavaScript running inside your own browser and nothing is sent to a server, stored or logged. Closing the tab is all it takes to be rid of it, and nothing is kept between visits.