Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a5af3dc7
Commit
a5af3dc7
authored
Oct 20, 2007
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
71ccbbbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitattributes
View file @
a5af3dc7
...
...
@@ -147,6 +147,7 @@ src/tablepar.h -text
src/taxis.c -text
src/taxis.h -text
src/timebase.c -text
src/timebase.h -text
src/tsteps.c -text
src/util.c -text
src/util.h -text
...
...
src/timebase.h
0 → 100644
View file @
a5af3dc7
#ifndef _TIMEBASE_H
#define _TIMEBASE_H
/* date format: YYYYMMDD */
/* time format: hhmm */
void
decode_date
(
int
date
,
int
*
year
,
int
*
month
,
int
*
day
);
int
encode_date
(
int
year
,
int
month
,
int
day
);
void
decode_time
(
int
time
,
int
*
hour
,
int
*
minute
);
int
encode_time
(
int
hour
,
int
minute
);
void
decode_julday
(
int
julday
,
int
*
year
,
int
*
mon
,
int
*
day
);
int
encode_julday
(
int
year
,
int
month
,
int
day
);
int
date_to_julday
(
int
date
);
int
julday_to_date
(
int
julday
);
int
time_to_sec
(
int
time
);
int
sec_to_time
(
int
secofday
);
void
julday_add_seconds
(
int
seconds
,
int
*
julday
,
int
*
secofday
);
void
julday_add
(
int
days
,
int
secs
,
int
*
julday
,
int
*
secofday
);
int
julday_sub
(
int
julday1
,
int
secofday1
,
int
julday2
,
int
secofday2
,
int
*
days
,
int
*
secs
);
void
encode_juldaysec
(
int
year
,
int
month
,
int
day
,
int
hour
,
int
minute
,
int
*
julday
,
int
*
secofday
);
void
decode_juldaysec
(
int
julday
,
int
secofday
,
int
*
year
,
int
*
month
,
int
*
day
,
int
*
hour
,
int
*
minute
);
#endif
/* _TIMEBASE_H */
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