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

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

问题描述

我正在使用 appcelerator Titan 开发一个 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 库来计算日出/日落 + 具有纬度和经度的世界国家和城市的数据库

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?

任何想法.

推荐答案

这个算法看起来很邪恶准确地解决您想要做的事情.

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

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

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