Commit 93739319 authored by MichelJuillard's avatar MichelJuillard
Browse files

update

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