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
7b311bd7
Commit
7b311bd7
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Removed function decode_calday().
parent
5bd87893
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#18400
failed
1 month ago
Stage: external
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/calendar.c
+1
-12
1 addition, 12 deletions
src/calendar.c
src/calendar.h
+0
-3
0 additions, 3 deletions
src/calendar.h
src/timebase.c
+1
-1
1 addition, 1 deletion
src/timebase.c
src/timebase.h
+0
-1
0 additions, 1 deletion
src/timebase.h
with
2 additions
and
17 deletions
src/calendar.c
+
1
−
12
View file @
7b311bd7
...
...
@@ -99,7 +99,7 @@ encode_day(int daysPerYear, int year, int month, int day)
return
rval
;
}
int64_t
static
int64_t
encode_calday
(
int
calendar
,
int
year
,
int
month
,
int
day
)
{
const
int
dpy
=
calendar_dpy
(
calendar
);
...
...
@@ -110,17 +110,6 @@ encode_calday(int calendar, int year, int month, int day)
return
encode_julday
(
calendar
,
year
,
month
,
day
);
}
void
decode_calday
(
int
calendar
,
int64_t
julday
,
int
*
year
,
int
*
month
,
int
*
day
)
{
const
int
dpy
=
calendar_dpy
(
calendar
);
if
(
dpy
==
360
||
dpy
==
365
||
dpy
==
366
)
decode_day
(
dpy
,
julday
,
year
,
month
,
day
);
else
decode_julday
(
calendar
,
julday
,
year
,
month
,
day
);
}
int64_t
calDay_encode
(
int
calendar
,
CdiDate
date
)
{
...
...
This diff is collapsed.
Click to expand it.
src/calendar.h
+
0
−
3
View file @
7b311bd7
...
...
@@ -9,9 +9,6 @@
extern
"C"
{
#endif
int64_t
encode_calday
(
int
calendar
,
int
year
,
int
month
,
int
day
);
void
decode_calday
(
int
calendar
,
int64_t
julday
,
int
*
year
,
int
*
month
,
int
*
day
);
int64_t
calDay_encode
(
int
calendar
,
CdiDate
date
);
CdiDate
calDay_decode
(
int
calendar
,
int64_t
julday
);
...
...
This diff is collapsed.
Click to expand it.
src/timebase.c
+
1
−
1
View file @
7b311bd7
...
...
@@ -141,7 +141,7 @@ encode_secofday(int hour, int minute, int second, int ms)
return
hour
*
3600
+
minute
*
60
+
second
+
ms
/
1000
.
0
;
}
void
static
void
decode_secofday
(
double
secondOfDay
,
int
*
hour
,
int
*
minute
,
int
*
second
,
int
*
ms
)
{
const
int
fullSeconds
=
(
int
)
secondOfDay
;
...
...
This diff is collapsed.
Click to expand it.
src/timebase.h
+
0
−
1
View file @
7b311bd7
...
...
@@ -22,7 +22,6 @@ void decode_julday(int calendar, int64_t julianDay, int *year, int *mon, int *da
int64_t
encode_julday
(
int
calendar
,
int
year
,
int
month
,
int
day
);
double
encode_secofday
(
int
hour
,
int
minute
,
int
second
,
int
ms
);
void
decode_secofday
(
double
secOfDay
,
int
*
hour
,
int
*
minute
,
int
*
second
,
int
*
ms
);
void
julday_add_seconds
(
int64_t
seconds
,
int64_t
*
julianDay
,
double
*
secondOfDay
);
double
julday_sub
(
int64_t
julianDay1
,
double
secondOfDay1
,
int64_t
julianDay2
,
double
secondOfDay2
,
int64_t
*
days
,
double
*
secs
);
...
...
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