From e4f111accb8395dc8caf1dda92b8d903d3d78151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 13 Apr 2018 23:37:29 +0200 Subject: Remove two unused (julianday) functions --- src/utils/datetime.hpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/utils') diff --git a/src/utils/datetime.hpp b/src/utils/datetime.hpp index 27511f7..656b318 100644 --- a/src/utils/datetime.hpp +++ b/src/utils/datetime.hpp @@ -50,19 +50,7 @@ public: return this->t.time_since_epoch(); } - long double julianday() const - { - log_debug("ici?"); - auto res = ((static_cast(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(t) / 86400.0 + 2440587.5; -} -- cgit v1.2.3