summaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-22 20:59:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-22 20:59:28 +0200
commit2b99cb3f3d43c48d9292707725b6618b18944d42 (patch)
treeb53473af2bb46b121669fee9ba006de04520bc12 /src/utils.h
parent289f61e5023758f1ca805d19be5f2c19757090e3 (diff)
downloaddabmux-2b99cb3f3d43c48d9292707725b6618b18944d42.tar.gz
dabmux-2b99cb3f3d43c48d9292707725b6618b18944d42.tar.bz2
dabmux-2b99cb3f3d43c48d9292707725b6618b18944d42.zip
Remove dabUtils.{h,cpp}, move to utils
Also remove the obsolete dump code
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 7ffa325..f65bba8 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -37,6 +37,17 @@
void update_dab_time(void);
void get_dab_time(time_t *time, uint32_t *millis);
+/* Convert a date and time into the modified Julian date
+ * used in FIG 0/10
+ *
+ * Year is four digit format.
+ * Months are Jan=1, Feb=2, etc.
+ * First day of the month is 1, as usual.
+ *
+ * Returns corresponding MJD
+ */
+uint32_t gregorian2mjd(int year, int month, int day);
+
/* Shows the introductory header on program start */
void header_message();