Skip to content

compare_time is incorrect for same days #12

@mengwong

Description

@mengwong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions