diff --git a/README.md b/README.md index cf7cba2..f48c6c5 100755 --- a/README.md +++ b/README.md @@ -107,7 +107,6 @@ git clone https://github.com/monero-project/monero cd monero/ - make ``` diff --git a/src/tools.cpp b/src/tools.cpp index 3a4461a..84b7c3d 100755 --- a/src/tools.cpp +++ b/src/tools.cpp @@ -799,16 +799,6 @@ timestamps_time_scale(const vector& timestamps, return make_pair(empty_time, scale); } -// useful reference to get epoch time in correct timezon -// http://www.boost.org/doc/libs/1_41_0/doc/html/date_time/examples.html#date_time.examples.seconds_since_epoch -time_t -ptime_to_time_t(const pt::ptime& in_ptime) -{ - static pt::ptime epoch(gt::date(1970, 1, 1)); - pt::time_duration::sec_type no_seconds = (in_ptime - epoch).total_seconds(); - return time_t(no_seconds); -} - bool decode_ringct(const rct::rctSig& rv, const crypto::public_key &pub, diff --git a/src/tools.h b/src/tools.h index 7eeb9f1..5e27bb7 100755 --- a/src/tools.h +++ b/src/tools.h @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include @@ -42,9 +42,8 @@ using namespace crypto; using namespace std; namespace bf = boost::filesystem; -namespace pt = boost::posix_time; -namespace gt = boost::gregorian; -namespace lt = boost::local_time; +//namespace pt = boost::posix_time; +//namespace gt = boost::gregorian; using json = nlohmann::json; @@ -184,8 +183,6 @@ timestamps_time_scale(const vector& timestamps, uint64_t time0 = 1397818193 /* timestamp of the second block */); -time_t -ptime_to_time_t(const pt::ptime& in_ptime); bool decode_ringct(const rct::rctSig & rv,