return spec of DIFFERENCE omits time! #3383
Labels
status.built
A change in codebase has been done to address the ticket.
type.review
Ticket describes a possible improvement.
Expected behavior
spec-of :difference
should containreturn: [block! hash! string! bitset! typeset! time!]
since the difference between two
date!
values is atime!
value.Actual behavior
it contains
return: [block! hash! string! bitset! typeset!]
Note that the operation of
difference
is correct, it is just the spec that is defective.Note also that
difference
on dates means something else thansubtract
or-
, since those two (an action and the corresponding op) yield an integer value, namely the number of days, ignoring any time componentsSteps to reproduce the problem
execute above code
Red and platform version
The text was updated successfully, but these errors were encountered: