package com.changhong.epc.count.service.system.func.set.date; import com.changhong.epc.count.service.system.func.set.AbsFuncSupper; import com.googlecode.aviator.runtime.type.AviatorObject; import com.googlecode.aviator.runtime.type.AviatorString; import com.iemsoft.framework.cloud.core.tools.DateTool; import java.util.Date; import java.util.Map; /** * * 获得当前时间 * @author wangZX * */ public class NowDate extends AbsFuncSupper { @Override public AviatorObject call(Map env) { return new AviatorString(DateTool.dateToString(new Date(), DateTool.DATE_TO_STRING_DETAIAL_PATTERN)); } @Override public String getName() { return FUNC_DATE_GET_NOWDATE; } }