Commit 268c3621 authored by Michel Juillard's avatar Michel Juillard
Browse files

add exports, fix typo

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