Skip to content

Commit

Permalink
fix within dates
Browse files Browse the repository at this point in the history
  • Loading branch information
joewatt95 committed Oct 11, 2023
1 parent 86cd79f commit bfd3686
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reasoner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,12 @@
is_duration_before(Date1, Duration, Date0).

is_duration_before_after_within(Date0, Duration, within, Date1) :-
is_duration_before(Date0, Duration, Date1).
is_duration_before(Date0, Duration, Date),
is_duration_before(Date1, _, Date).

is_duration_before_after_within(Date0, Duration, within, Date1) :-
is_duration_before(Date1, Duration, Date0).
is_duration_before(Date1, Duration, Date),
is_duration_before(Date0, _, Date).

%! in(X,List) is nondet.
% X is in List
Expand Down

0 comments on commit bfd3686

Please sign in to comment.