本文整理了Java中org.pentaho.reporting.libraries.formula.function.datetime.YesterdayFunction.yesterday()
方法的一些代码示例,展示了YesterdayFunction.yesterday()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesterdayFunction.yesterday()
方法的具体详情如下:
包路径:org.pentaho.reporting.libraries.formula.function.datetime.YesterdayFunction
类名称:YesterdayFunction
方法名:yesterday
暂无
代码示例来源:origin: pentaho/pentaho-reporting
public TypeValuePair evaluate( final FormulaContext context,
final ParameterCallback parameters )
throws EvaluationException {
final Date yesterday = yesterday( context );
final Date date = DateUtil.normalizeDate( yesterday, DateTimeType.DATE_TYPE );
return new TypeValuePair( DateTimeType.DATE_TYPE, date );
}
代码示例来源:origin: dennisk28/SmartETL
public TypeValuePair evaluate(final FormulaContext context,
final ParameterCallback parameters)
throws EvaluationException
{
final Date yesterday = yesterday(context);
final Date date = DateUtil.normalizeDate(yesterday, DateTimeType.DATE_TYPE);
return new TypeValuePair(DateTimeType.DATE_TYPE, date);
}
内容来源于网络,如有侵权,请联系作者删除!