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

Substraction of a Datetime object from an Array{Datetime} #22

Closed
scheidan opened this issue Nov 14, 2013 · 3 comments
Closed

Substraction of a Datetime object from an Array{Datetime} #22

scheidan opened this issue Nov 14, 2013 · 3 comments

Comments

@scheidan
Copy link

There seems to a problem with the substraction of a Datetime object from an Array{Datetime}:

t1 = datetime(2000, 11, 1)
t_array = [datetime(2001, 11, 1) : month(7) : datetime(2005, 11, 1)]

## --- works as expected
t_array[1] - t1
t1 .- t_array
t1 - t_array

## --- however:
t_array - t1
## ERROR: i not defined
##  in - at C:\Users\scheidan\.julia\Datetime\src\Datetime.jl:358
## WARNING: backtraces on your platform are often misleading or partially incorrect

t_array .- t1
## ERROR: i not defined
##  in .- at operators.jl:83
## WARNING: backtraces on your platform are often misleading or partially incorrect

I'm using Julia 0.2.0-RC4, 64bit on Windows 7.

Hope that helps.

@quinnj
Copy link
Owner

quinnj commented Nov 15, 2013

Sorry for the delay on this. Yeah, there must be some kind of bug. I have a few reworks in progress, so I'll try to work it into those branches to push.

@quinnj
Copy link
Owner

quinnj commented Jan 8, 2014

Ok, I figured this out and it works on my latest master rewrite that's going into Base. See JuliaLang/julia#5328 for the code.

@quinnj
Copy link
Owner

quinnj commented Feb 28, 2014

Should be fixed by ed8123e

@quinnj quinnj closed this as completed Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants