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
891841c0
Verified
Commit
891841c0
authored
Feb 03, 2021
by
Stéphane Adjemian
Browse files
Fix daily periods (value is not a field of type Date).
parent
774106c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SimplePeriods.jl
View file @
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
)
...
...
Write
Preview
Supports
Markdown
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