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.
这篇关于转换为和从印度教日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:转换为和从印度教日历
基础教程推荐
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 多个组件的复杂布局 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 从 python 访问 JVM 2022-01-01
