Beispiel #1
0
        public override object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var dtx = ((DateTimeEx)target).Clone();

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);
            return(ReformatOp.Evaluate(dtx, evaluateParams.EventsPerStream, evaluateParams.IsNewData, evaluateParams.ExprEvaluatorContext));
        }
Beispiel #2
0
 public override Object Evaluate(
     Object target,
     EventBean[] eventsPerStream,
     bool isNewData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     return(ReformatOp.Evaluate(target.AsLong(), eventsPerStream, isNewData, exprEvaluatorContext));
 }
        public override object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var dt  = (DateTimeOffset)target;
            var dtx = DateTimeEx.GetInstance(_timeZone, dt);

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);
            return(ReformatOp.Evaluate(dtx, evaluateParams.EventsPerStream, evaluateParams.IsNewData, evaluateParams.ExprEvaluatorContext));
        }
Beispiel #4
0
            public override Object Evaluate(
                Object target,
                EventBean[] eventsPerStream,
                bool isNewData,
                ExprEvaluatorContext exprEvaluatorContext)
            {
                var dateTime = new DateTimeEx(target.AsLong().TimeFromMillis(_timeZone), _timeZone);

                EvaluateCalOps(CalendarOps, dateTime, eventsPerStream, isNewData, exprEvaluatorContext);
                return(ReformatOp.Evaluate(dateTime.DateTime, eventsPerStream, isNewData, exprEvaluatorContext));
            }
Beispiel #5
0
 public override object Evaluate(object target, EvaluateParams evaluateParams)
 {
     return(ReformatOp.Evaluate((DateTimeEx)target, evaluateParams.EventsPerStream, evaluateParams.IsNewData, evaluateParams.ExprEvaluatorContext));
 }