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
Dóra Kocsis
dynare
Commits
73c96097
Commit
73c96097
authored
Dec 07, 2012
by
Stéphane Adjemian
Browse files
Append 'Y' to yearly dates.
parent
c858b366
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynDate/format.m
View file @
73c96097
...
...
@@ -57,7 +57,7 @@ end
switch
date
.
freq
case
1
p
=
num2str
(
date
.
time
(
1
));
p
=
[
num2str
(
date
.
time
(
1
))
'Y'
]
;
case
4
p
=
[
num2str
(
date
.
time
(
1
))
'Q'
num2str
(
date
.
time
(
2
))];
case
12
...
...
@@ -84,7 +84,7 @@ end
%
$
d4
=
dynDate
(
date_4
);
DATE_4
=
format
(
d4
);
%
$
%
$
%
Check
the
results
.
%
$
t
(
1
)
=
dyn_assert
(
num2str
(
date_1
),
DATE_1
);
%
$
t
(
1
)
=
dyn_assert
(
[
num2str
(
date_1
)
'Y'
]
,
DATE_1
);
%
$
t
(
2
)
=
dyn_assert
(
date_2
,
DATE_2
);
%
$
t
(
3
)
=
dyn_assert
(
date_3
,
DATE_3
);
%
$
t
(
4
)
=
dyn_assert
(
date_4
,
DATE_4
);
...
...
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