Commit 00f28b06 authored by MichelJuillard's avatar MichelJuillard
Browse files

Merge branch 'fix-daily-periods' into 'master'

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

See merge request julia-packages/periods.jl!2
parents 774106c9 891841c0
......@@ -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