Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
143edd76
Commit
143edd76
authored
3 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
cdi.c: replace taxisInqRdate() by taxisInqRdatetime().
parent
7c3243b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#14988
failed
3 years ago
Stage: external
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/cdi.c
+8
-6
8 additions, 6 deletions
app/cdi.c
with
8 additions
and
6 deletions
app/cdi.c
+
8
−
6
View file @
143edd76
...
...
@@ -340,7 +340,6 @@ printShortinfo(int streamID, int vlistID, int vardis)
{
char
tmpname
[
CDI_MAX_NAME
];
char
varname
[
CDI_MAX_NAME
];
int
year
,
month
,
day
,
hour
,
minute
,
second
;
char
pstr
[
4
];
char
paramstr
[
32
];
...
...
@@ -495,11 +494,14 @@ printShortinfo(int streamID, int vlistID, int vardis)
{
if
(
taxisInqType
(
taxisID
)
==
TAXIS_RELATIVE
)
{
int64_t
vdate
=
taxisInqRdate
(
taxisID
);
int
vtime
=
taxisInqRtime
(
taxisID
);
cdiDecodeDate
(
vdate
,
&
year
,
&
month
,
&
day
);
cdiDecodeTime
(
vtime
,
&
hour
,
&
minute
,
&
second
);
const
CdiDateTime
rdatetime
=
taxisInqRdatetime
(
taxisID
);
const
int
year
=
rdatetime
.
date
.
year
;
const
int
month
=
rdatetime
.
date
.
month
;
const
int
day
=
rdatetime
.
date
.
day
;
const
int
hour
=
rdatetime
.
time
.
hour
;
const
int
minute
=
rdatetime
.
time
.
minute
;
const
int
second
=
rdatetime
.
time
.
second
;
fprintf
(
stdout
,
" RefTime = %4.4d-%2.2d-%2.2d %2.2d:%2.2d:%2.2d"
,
year
,
month
,
day
,
hour
,
minute
,
second
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment