Ejemplo n.º 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));
        }
        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));
        }
Ejemplo n.º 3
0
        public object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var        dtxValue = (DateTimeEx)target;
            DateTimeEx dtx      = dtxValue.Clone();

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);

            return(dtx);
        }
Ejemplo n.º 4
0
        public object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var dateValue = (DateTimeOffset)target;
            var dtx       = new DateTimeEx(dateValue, _timeZone);

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);

            return(dtx.DateTime);
        }
Ejemplo n.º 5
0
        public object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var longValue = (long)target;
            var dtx       = DateTimeEx.GetInstance(_timeZone);
            var remainder = _timeAbacus.CalendarSet(longValue, dtx);

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);

            return(_timeAbacus.CalendarGet(dtx, remainder));
        }
Ejemplo n.º 6
0
        public object Evaluate(object target, EvaluateParams evaluateParams)
        {
            var dateValue = (DateTime)target;
            var dtx       = DateTimeEx.GetInstance(_timeZone);

            dtx.SetUtcMillis(dateValue.UtcMillis());

            DTLocalEvaluatorBase.EvaluateDtxOps(CalendarOps, dtx, evaluateParams);

            return(dtx.DateTime.DateTime);
        }