Verified Commit 891841c0 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fix daily periods (value is not a field of type Date).

parent 774106c9
......@@ -44,8 +44,8 @@ function Period(arg1::Integer, arg2::Integer, arg3::Integer, frequency::Frequenc
end
end
Period(year::Integer, month::Integer, day::Integer) = (Date(year, month, day).value, Day)
Period(d::Date) = (d.value, Day)
Period(year::Integer, month::Integer, day::Integer) = (Date(year, month, day).instant.periods.value, Day)
Period(d::Date) = (d.instant.periods.value, Day)
import Base.copy
copy(p::Period) = Period(p.ordinal, p.frequency)
......
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