~singpolyma/biboumi

e4f111accb8395dc8caf1dda92b8d903d3d78151 — louiz’ 6 years ago 4bd7b69
Remove two unused (julianday) functions
1 files changed, 0 insertions(+), 12 deletions(-)

M src/utils/datetime.hpp
M src/utils/datetime.hpp => src/utils/datetime.hpp +0 -12
@@ 50,19 50,7 @@ public:
    return this->t.time_since_epoch();
  }

  long double julianday() const
  {
    log_debug("ici?");
    auto res = ((static_cast<long double>(this->epoch().count()) / std::chrono::system_clock::period::den) / 86400) + 2440587.5;
    return res;
  }

private:
  std::string s;
  time_point t;
};

inline long double to_julianday(std::time_t t)
{
  return static_cast<long double>(t) / 86400.0 + 2440587.5;
}