Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dseries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dóra Kocsis
dseries
Commits
dad6b80c
Commit
dad6b80c
authored
Jun 24, 2020
by
Dóra Kocsis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for daily frequency in mdbnomics2dseries conversion.
parent
1b897b37
Pipeline
#3843
passed with stage
in 4 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/utilities/get/get_series_start_date.m
src/utilities/get/get_series_start_date.m
+17
-0
No files found.
src/utilities/get/get_series_start_date.m
View file @
dad6b80c
...
...
@@ -26,6 +26,8 @@ function series_start_date = get_series_start_date(frequency, original_period)
date_ext
=
regexp
(
original_period
,
'\d*'
,
'Match'
);
switch
frequency
case
'daily'
series_start_date
=
original_period
;
case
'monthly'
series_start_date
=
[
date_ext
{
1
}
'M'
regexprep
(
date_ext
{
2
},
'\<0*'
,
''
)];
case
'quarterly'
...
...
@@ -98,3 +100,18 @@ end
%$
%$ T = all(t);
%@eof:4
%@test:5
%$ try
%$ str = get_series_start_date('daily','1997-01-01');
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$
%$ if t(1)
%$ t(2) = dassert(str, '1997-01-01');
%$ end
%$
%$ T = all(t);
%@eof:5
\ No newline at end of file
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