c++ - 如何在 C++ 中计算日出和日落?
问题描述
如何使用时间戳、纬度和经度计算日出和日落时间?
bool caluclate(unsigned long ts, double lat, double lng, _time_* out ){
out->hour = 0; // ??
out->minute = 0; // ??
out->sec = 0; // ??
return true;
}
解决方案
推荐阅读
- next.js - 在已部署的 Next.js 站点上,getStaticProps 和 getServerSideProps 函数何时运行?
- firebase - 上传 csv 文件以触发 firestore 集合更新
- python - 无法在python中复制xlsx文件
- json - 使用 Swift 5 和 Codable 解码 json 中的字典
- node.js - Webpack 5 不支持 Node.js 的 polyfill
- python - matplotlib 中的非连续滑块标签值
- gradle - 导入项目在 Intellij 中不起作用
- python - 通过过滤时间戳列来制作数据帧的子集
- javascript - ESM 始终基于文件
- javascript - 在反应项目中显示默认图像