compare_time against the same day produces an unexpected result.
I was expecting the Order to be =, but I got back < and > as well.
Welcome to SWI-Prolog (threaded, 64 bits, version 8.0.2)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
?- use_module(library(julian)).
true.
?- compare_time(Order, 2020-01-01, 2020-01-01).
Order = (<) ;
Order = (=) ;
Order = (>).
v0.1.3.
compare_timeagainst the same day produces an unexpected result.I was expecting the Order to be
=, but I got back<and>as well.v0.1.3.