Skip to content

Commit

Permalink
adding tpdate and mjd
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Jul 19, 2024
1 parent d88d32c commit 0196d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tpdate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,14 @@ class TwoPartDate {
constexpr explicit TwoPartDate(modified_julian_day mjd) noexcept
: _mjd(mjd.as_underlying_type()), _fsec(0){};

constexpr explicit TwoPartDate(year y, month m, day_of_month d,
explicit TwoPartDate(year y, month m, day_of_month d,
double sec_of_day=0e0)
: _mjd(modified_julian_day(y, m, d).as_underlying_type()),
_fsec(sec_of_day) {
this->normalize();
}

constexpr explicit TwoPartDate(year y, day_of_year d,
explicit TwoPartDate(year y, day_of_year d,
double sec_of_day=0e0)
: _mjd(modified_julian_day(y, d).as_underlying_type()),
_fsec(sec_of_day) {
Expand Down

0 comments on commit 0196d59

Please sign in to comment.