Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MichelJuillard
Periods.jl
Commits
aa63da04
Commit
aa63da04
authored
Feb 04, 2021
by
MichelJuillard
Browse files
Merge branch 'fix-monthly-periods' into 'master'
Fixed monthly periods. See merge request julia-packages/periods.jl!3
parents
00f28b06
10f89c6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SimplePeriods.jl
View file @
aa63da04
...
...
@@ -26,7 +26,7 @@ function Period(arg1::Integer, arg2::Integer, frequency::Frequency)
@assert
(
arg2
in
1
:
4
)
ordinal
=
4
*
(
arg1
-
1970
)
+
arg2
-
1
elseif
frequency
==
Month
@assert
(
subperiod
in
1
:
12
)
@assert
(
arg2
in
1
:
12
)
ordinal
=
12
*
(
arg1
-
1970
)
+
arg2
-
1
elseif
frequency
==
Week
ordinal
=
week1970
(
arg1
,
arg2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment