summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-04-13 23:37:29 +0200
committerlouiz’ <louiz@louiz.org>2018-04-13 23:37:29 +0200
commite4f111accb8395dc8caf1dda92b8d903d3d78151 (patch)
treef74289900cb7b3ad10cf0dd24438acfe2c904dd1
parent4bd7b6981bb49dd4111c908aaa34c34f677171f4 (diff)
downloadbiboumi-e4f111accb8395dc8caf1dda92b8d903d3d78151.tar.gz
biboumi-e4f111accb8395dc8caf1dda92b8d903d3d78151.tar.bz2
biboumi-e4f111accb8395dc8caf1dda92b8d903d3d78151.tar.xz
biboumi-e4f111accb8395dc8caf1dda92b8d903d3d78151.zip
Remove two unused (julianday) functions
-rw-r--r--src/utils/datetime.hpp12
1 files changed, 0 insertions, 12 deletions
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<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;
-}