| 1234567891011121314151617181920212223 |
- using IwbZero.Expr;
- using IwbZero.ToolCommon.StringModel;
- namespace IwbZero.ExprFunctions.Functions
- {
- /// <summary>
- /// 时间差(天)
- /// </summary>
- public class FunDiffD:IIwbFunction
- {
- public string Invoke(ExprObject exprObj)
- {
- int num = 0;
- var child = exprObj.GetChild(0);
- var child2 = exprObj.GetChild(2);
- if (child != null && child2 != null)
- {
- num = (child.Expr.StrToDt() - child2.Expr.StrToDt()).Days;
- }
- return num.ToString();
- }
- }
- }
|