1
0
mirror of synced 2026-10-17 03:56:11 +08:00

Initial commit

This commit is contained in:
6tail
2018-06-23 16:41:40 +08:00
commit 6db19410ea
21 changed files with 2151 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package sample;
import com.nlf.calendar.Solar;
import org.junit.Test;
/**
* 阳历示例
*/
public class SolarTest {
@Test
public void test(){
//阳历今天
Solar date = new Solar();
//输出阳历信息
System.out.println(date.toFullString());
//输出阴历信息
System.out.println(date.getLunar().toFullString());
System.out.println();
//指定某个阳历日期
date = new Solar(1986,5,29);
System.out.println(date.toFullString());
System.out.println(date.getLunar().toFullString());
}
}