如何计算日出,日落和中午

编程入门 行业动态 更新时间:2024-10-28 21:20:35
本文介绍了如何计算日出,日落和中午的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试制作一个程序,根据世界上任何城市的经度,纬度和时区计算日出,日落和太阳中午。 我怎么能在 vb 中做到这一点? 谢谢。

I'm trying to make a program that calculates the sunrise, sunset and solar noon based on longitude, latitude and time zone for any city in the world. How can I do that in vb? Thanks.

推荐答案

日出和日落的计算很容易找到: https://en.wikipedia。 org / wiki / Sunrise_equation [ ^ ] users.electromagnetic/bu/astro/sunrise-set.php [ ^ ] aa.quae.nl/en/reken/zonpositie.html [ ^ ] 您只需将计算转换为代码。 没有必要计算中午 - 它总是在下午12点。 :) (除非你的意思是太阳中午,它包含在日出/日落计算中。) 编辑:我发布了我用于GitHub的C#代码,这可能会给你一个开始的地方: gist.github/RichardD2/f6b08a5791b21ac77ce7 [ ^ ] The calculations for sunrise and sunset are easy to find: en.wikipedia/wiki/Sunrise_equation[^] users.electromagnetic/bu/astro/sunrise-set.php[^] aa.quae.nl/en/reken/zonpositie.html[^] You just need to translate the calculation into code. There's no need to "calculate" noon - it's always at exactly 12 PM. :) (Unless you mean "solar noon", which is included in the sunrise / sunset calculation.) I've posted the C# code I use to GitHub, which might give you a place to start: gist.github/RichardD2/f6b08a5791b21ac77ce7[^]

更多推荐

如何计算日出,日落和中午

本文发布于:2023-11-22 10:38:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1617091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日出   中午

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!