Converting to and from Hindu calendar(转换为和从印度教日历)
问题描述
如何将 unix 时间转换为 印度日历Wikipedia 在 php、Perl 或 Python 或 Java代码>?我知道我可以转换成 Hebrew 和 Jewish.但是 Hindu 不是一种选择.
How can I convert unix time to Hindu calendarWikipedia time and the other way round in php, Perl or Python or Java? I know I can convert to Hebrew and Jewish. But Hindu is not an option.
更具体地说,我说的是印度教的农历.以下网站正在运行,并且完全符合我的要求:http://web.meson.org/calendars/.例如,它将 28-1-2012(公历)翻译"为 5-11-2068(印度历).我怎样才能完成同样的任务?如果那里绝对没有脚本,我怎么能自己写呢?
To be more specific, I'm talking about the Hindu lunar calendar. The following website is working and does exactly what I want: http://web.meson.org/calendars/. For example, it 'translates' 28-1-2012 (Gregorian) to 5-11-2068 (Hind. Lun.). How can I accomplish the same task? And if there are absolutely no scrips out there, how can I write it myself?
推荐答案
论文:印度历法计算
在附录中提供 Common Lisp 代码.
Paper: Indian Calendrical Calculations
Provides Common Lisp code in the appendix.
虽然可以根据论文编写 Python(或其他语言)解决方案,但作者很好地列举了印度日历规则,因此如果您愿意考虑采用所提供的 Common Lisp 代码,这是一篇非常可靠的论文.
While a Python (or other language) solution could be written according to the paper, the authors enumerate the Indian calendar rules pretty well, so it's a pretty solid paper if you're willing to consider taking the provided Common Lisp code.
这篇关于转换为和从印度教日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:转换为和从印度教日历
基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
