Commit 93739319 authored by MichelJuillard's avatar MichelJuillard
Browse files

update

parent a8d1eab6
module Periods module Periods
abstract type AbstractPeriod end
include("SimplePeriods.jl") include("SimplePeriods.jl")
export Period
end # module end # module
@enum Frequency Year Semester Quarter Month Week Business Day @enum Frequency Year Semester Quarter Month Week Business Day
struct SimplePeriod struct Period
ordinal::Int64 ordinal::Int64
frequency::Frequency frequency::Frequency
end end
function SimplePeriod(year, subperiod, frequency) function Period(year, subperiod, frequency) <: AbstractPeriod
if frequency == Year if frequency == Year
ordinal = year - 1970 ordinal = year - 1970
elseif frequency == Semester elseif frequency == Semester
......
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