Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Propogate missings with arithmatic #32

Closed
wants to merge 2 commits into from
Closed

Propogate missings with arithmatic #32

wants to merge 2 commits into from

Conversation

pdeffebach
Copy link

This issue: JuliaLang/julia#28570 points out that arithmetic with dates and missing values throws an error. Instead, dates should behave like numbers in this instance, propagating missing values.

This PR adds 4 methods for operations with missing and TimeType. +, -, and both orders for each.

However it is likely this adds too much behavior, as it seems not all TimeType subtypes support + (you can't add years). I would appreciate some guidance for more specific methods to add.

@quinnj
Copy link
Owner

quinnj commented Aug 12, 2018

This github repository is deprecated; please make PRs against the stdlib/Dates/ directory of JuliaLang/julia repository

@quinnj quinnj closed this Aug 12, 2018
@pdeffebach
Copy link
Author

pdeffebach commented Aug 12, 2018

Yeah that's what I thought.

This is what the remote was when I did ]dev Dates, which is weird, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants