Esempio n. 1
0
 public object Compute(
     object input,
     EventBean[] eventsPerStream,
     bool newData,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     return(StringToDateTimeOffsetWStaticFormatComputer.StringToDateTimeOffsetWStaticFormatParse(
                input.ToString(),
                DateTimeFormat.ISO_DATE_TIME));
 }
Esempio n. 2
0
            public override object Compute(
                object input,
                EventBean[] eventsPerStream,
                bool newData,
                ExprEvaluatorContext exprEvaluatorContext)
            {
                var format    = dateFormatEval.Evaluate(eventsPerStream, newData, exprEvaluatorContext);
                var formatter = StringToDateTimeFormatterSafe(format);

                return(StringToDateTimeOffsetWStaticFormatComputer.StringToDateTimeOffsetWStaticFormatParse(
                           input.ToString(),
                           formatter));
            }