From 2b99cb3f3d43c48d9292707725b6618b18944d42 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 22 Aug 2016 20:59:28 +0200 Subject: Remove dabUtils.{h,cpp}, move to utils Also remove the obsolete dump code --- src/utils.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/utils.h') 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(); -- cgit v1.2.3