Verified Commit 10f89c6b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed monthly periods.

Wrong variable name.
parent 00f28b06
......@@ -26,7 +26,7 @@ function Period(arg1::Integer, arg2::Integer, frequency::Frequency)
@assert(arg2 in 1:4)
ordinal = 4*(arg1 - 1970) + arg2 - 1
elseif frequency == Month
@assert(subperiod in 1:12)
@assert(arg2 in 1:12)
ordinal = 12*(arg1 - 1970) + arg2 - 1
elseif frequency == Week
ordinal = week1970(arg1, arg2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment