首页 > 解决方案 > 如何在 C++ 中计算日出和日落?

问题描述

如何使用时间戳、纬度和经度计算日出和日落时间?

 bool caluclate(unsigned long ts, double lat, double lng, _time_* out ){
     
     
     out->hour = 0;  // ??
     out->minute = 0;  // ??
     out->sec = 0;      // ??
     
     return true;
 }

标签: c++

解决方案


推荐阅读