如何计算JavaScript中的日出和日落? [英] How to calculate the sunrise and sunset in javascript?

查看:160
本文介绍了如何计算JavaScript中的日出和日落?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Appcelerator钛开发的IOS应用程序,我想让我的应用程序发送本地通知用户在日出和日落

i am using appcelerator titanium to develop an IOS app and i want to let my app send local notification to the users in sunrise and sunset

一个很好的工具来解决,这是使用YQL雅虎天气;不过,雅虎的天气是对非商业用途!

a good tool to solve this is Yahoo weather using YQL ; however, yahoo weather is for non-commercial use only!!

我想找到一个JavaScript库来计算日出/套+世界上的国家和城市的纬度和longtude

i am trying to find a javascript library to calculate the sunrise/set + a database of the world's countries and cities with the latitude and longtude

有任何人任何时候所需要的一样吗?

have anyone ever needed the same?

任何想法。

推荐答案

该算法看起来pretty的恶人来解决你在找到底该怎么做。

This algorithm looks pretty wicked to solve exactly what you're looking to do.

这篇关于如何计算JavaScript中的日出和日落?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆