Skip to content

Commit

Permalink
start on longitude safety checks, but need to sort out exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed Dec 28, 2023
1 parent de33e6f commit bec4048
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cpp/libtzsolar/libtzsolar/libtzsolar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

#include "libtzsolar.hpp"
#include <stdlib>
#include <iomanip>
#include <sstream>
#include <cmath>
Expand Down Expand Up @@ -50,7 +51,15 @@ void TZSolar::tz_params ( short longitude, bool use_lon_tz, boost::optional<shor
}
}

//
// set time zone from longitude
//

// safety check on longitude
if ( std::abs( longitude ) > max_longitude_fp + precision_fp ) {
// TODO
}

// TODO
}

0 comments on commit bec4048

Please sign in to comment.