帆软帮助文档代码合集。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
459 B

//自定义函数把阳历转换成阴历
package com.fr.function;
import com.fr.script.AbstractFunction;
public class Lunar extends AbstractFunction {
public Object run(Object[] args) {
String result = "";
int y = Integer.parseInt(args[0].toString());
int m = Integer.parseInt(args[1].toString());
int d = Integer.parseInt(args[2].toString());
result = SolarToLunar.today(y, m, d);
return result;
}
}