Skip to content

Commit

Permalink
Remove cout statements
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Jul 11, 2023
1 parent e9e5f65 commit 89af9b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tudatpy/kernel/expose_astro/expose_time_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ tba::DateTime timePointToDateTime(const std::chrono::system_clock::time_point da
{
std::time_t tt = std::chrono::system_clock::to_time_t(datetime);
std::tm local_tm = *localtime(&tt);
std::cout<<"Date/time: "<<local_tm.tm_year<<" "<<local_tm.tm_mon<<" "<<local_tm.tm_mday<<" "<<local_tm.tm_hour<<" "<<local_tm.tm_min<<" "<<local_tm.tm_sec<<std::endl;

using namespace std::chrono;
microseconds timeInMicroSeconds = duration_cast<microseconds>(datetime.time_since_epoch());
auto fractional_seconds = timeInMicroSeconds.count() % 1000000;
std::cout<<timeInMicroSeconds.count()<<" "<<fractional_seconds<<std::endl;

return tba::DateTime( local_tm.tm_year + 1900, local_tm.tm_mon + 1, local_tm.tm_mday,
local_tm.tm_hour, local_tm.tm_min, static_cast< long double >( local_tm.tm_sec ) +
Expand Down

0 comments on commit 89af9b7

Please sign in to comment.