Since the space is usually not a legal character in a Prolog statement, we will substitute an underline for the space. Hour is between 0 and 24. Minute between 0 and 59. Month between 1 and 12. Day between 1 and 31.
Year is any integer.
From this information one can calculate the day, e.g., Monday, Tues, and so day names are not in the list. The first part of the project is to compile a listing of relevant forms that our program must analyze. The grammar of English time expressions, which will be encoded into Prolog, must incorporate selection restrictions, cooccurrence constraints, word order constraints, and so on. The pairing operation for the time expressions is much harder than that for the calendar because the numbers in the time expressions can change. The project should be turned in on the day the final exam is scheduled.