Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return spec of DIFFERENCE omits time! #3383

Closed
meijeru opened this issue May 10, 2018 · 0 comments
Closed

return spec of DIFFERENCE omits time! #3383

meijeru opened this issue May 10, 2018 · 0 comments
Labels
status.built A change in codebase has been done to address the ticket. type.review Ticket describes a possible improvement.

Comments

@meijeru
Copy link
Contributor

meijeru commented May 10, 2018

Expected behavior

spec-of :difference should contain return: [block! hash! string! bitset! typeset! time!]
since the difference between two date! values is a time! 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 than subtract or -, since those two (an action and the corresponding op) yield an integer value, namely the number of days, ignoring any time components

Steps to reproduce the problem

execute above code

Red and platform version

any
meijeru pushed a commit to meijeru/red that referenced this issue Jan 5, 2019
greggirwin added a commit that referenced this issue Jan 7, 2019
FIX: issue #3383 return spec of difference omits time!
@dockimbel dockimbel added status.built A change in codebase has been done to address the ticket. type.review Ticket describes a possible improvement. labels Aug 19, 2019
@dockimbel dockimbel added this to the 0.6.5 milestone Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.built A change in codebase has been done to address the ticket. type.review Ticket describes a possible improvement.
Projects
None yet
Development

No branches or pull requests

2 participants