如何在java脚本中将hijari日期转换为格里高利日期? [英] how to convert hijari date into gregorian date in java script?

查看:75
本文介绍了如何在java脚本中将hijari日期转换为格里高利日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用intalio editer,因为我想将hijari日期转换为格里高利日期,反之亦然。我们使用jsx3在java脚本中编写代码所以请帮助我。

i am use intalio editer in that i want to convert hijari date into gregorian date or vice-versa. we write code in java script using jsx3 so please help me.

推荐答案

有助于了解穆斯林将格里高利历称为Masihi。谷歌搜索hijrah to masihi converter将此页面作为第二个打击: http://www.islamicity.com/PrayerTimes/defaultHijriConv.asp

It helps to know that muslims refer to the Gregorian calendar as Masihi. Googling for "hijrah to masihi converter" turns up this page as the second hit: http://www.islamicity.com/PrayerTimes/defaultHijriConv.asp

javascript代码包含两个函数 GregToIsl IslToGreg 可以满足您的需求。

The javascript is code contains two functions GregToIsl and IslToGreg that does what you want.

有版权声明那个页面所以你不应该简单地复制粘贴代码。但是这些函数足够短,你可以从中提取相关的数学。

There is a copyright notice on that page so you shouldn't simply copy-paste the code. But the functions are short enough for you to extract the relevant maths out of.

数学/算法本身已经有近千年的历史了,所以它不应该有任何合法的数学限制。

The maths/algorithm itself is almost a thousand years old so it shouldn't have any legal restriction.

这篇关于如何在java脚本中将hijari日期转换为格里高利日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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