如何将 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.
这篇关于转换为和从印度教日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
解析 ISO 8601 字符串本地日期时间,就像在 UTC 中Parsing an ISO 8601 string local date-time as if in UTC(解析 ISO 8601 字符串本地日期时间,就像在 UTC 中一样)
如何将公历字符串转换为公历?How to convert Gregorian string to Gregorian Calendar?(如何将公历字符串转换为公历?)
Java:GregorianCalendar 的最大值和最小值是什么/在哪Java: What/where are the maximum and minimum values of a GregorianCalendar?(Java:GregorianCalendar 的最大值和最小值是什么/在哪里?)
1582 年 10 月 15 日之前日期的日历到日期转换.公历Calendar to Date conversion for dates before 15 Oct 1582. Gregorian to Julian calendar switch(1582 年 10 月 15 日之前日期的日历到日期转换
java日历setFirstDayOfWeek不起作用java Calendar setFirstDayOfWeek not working(java日历setFirstDayOfWeek不起作用)
Java:获取当前星期几的值Java: getting current Day of the Week value(Java:获取当前星期几的值)