Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How convert Gregorian to Chinese Lunar Calendar?

I want to build an android app using Greogorian Calendar to Chinese Lunar Calendar.

I don't know how to convert from Gregorian to Chinese Calendar. How can I do this?

like image 709
Ferry Fernandez Avatar asked Mar 08 '15 04:03

Ferry Fernandez


1 Answers

You can try: http://www.docjar.com/html/api/com/ibm/icu/util/ChineseCalendar.java.html

There is a contructor:

public ChineseCalendar(Date date) ...

Links:

Doc: http://icu-project.org/apiref/icu4j/com/ibm/icu/util/ChineseCalendar.html

Source: http://site.icu-project.org/download

like image 115
Quark Avatar answered Oct 20 '22 22:10

Quark