//>>> _using
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX;
using SharpDX.Direct3D11;
using SharpDX.Windows;
//<<< _using

namespace Framefield.Core.IDa59b0138_638d_4d98_bb97_efc0558e8620
{
    public class Class_DateTime : OperatorPart.Function, Framefield.Core.OperatorPartTraits.ITimeAccessor
    {
        //>>> _inputids
        private enum InputId
        {
            Format = 0
        }
        //<<< _inputids
        
        public override OperatorPartContext Eval(OperatorPartContext context, List<OperatorPart> inputs, int outputIdx) {
            //>>> _params
            var Format = inputs[(int)InputId.Format].Eval(context).Text;
            //<<< _params
            
            context.Text = DateTime.Now.ToString(Format);
            return context;
        }
    }
}

