From 835e40a5e646c2ace7e8dc723170c0750cbc9cc6 Mon Sep 17 00:00:00 2001 From: srcejon <57259258+srcejon@users.noreply.github.com> Date: Sun, 13 Nov 2022 11:13:43 +0000 Subject: [PATCH] Add DateTime constructor that has a microsecond parameter (#24) --- libsgp4/DateTime.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libsgp4/DateTime.h b/libsgp4/DateTime.h index 6778d5a..f3d81f0 100644 --- a/libsgp4/DateTime.h +++ b/libsgp4/DateTime.h @@ -113,6 +113,21 @@ public: * @param[in] second the second * @param[in] microsecond the microsecond */ + DateTime(int year, int month, int day, int hour, int minute, int second, int microsecond) + { + Initialise(year, month, day, hour, minute, second, microsecond); + } + + /** + * Initialise to the given data and time. + * @param[in] year the year + * @param[in] month the month + * @param[in] day the day + * @param[in] hour the hour + * @param[in] minute the minute + * @param[in] second the second + * @param[in] microsecond the microsecond + */ void Initialise(int year, int month, int day,