Skip to content

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Jul 16, 2024
1 parent 0e4c176 commit eb7de7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tpdate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ class TwoPartDate {
ymd_date to_ymd() const noexcept { return core::mjd2ymd((long)_mjd); }

/** @brief Transform the (integral part of the) date to Year Day-Of-Year */
ydoy_date to_ydoy() const noexcept { return modified_julian_day(_mjd).to_ydoy(); }
ydoy_date to_ydoy() const noexcept {
const modified_julian_day mjd(_mjd);
return mjd.to_ydoy();
// return modified_julian_day(_mjd).to_ydoy();
}

/** Add seconds to instance.
* @warning Does not take into account leap seconds.
Expand Down

0 comments on commit eb7de7e

Please sign in to comment.