Example #1
0
        public DateInstance Construct(double time)
        {
            var instance = new DateInstance(Engine)
            {
                Prototype      = PrototypeObject,
                PrimitiveValue = TimeClip(time),
                Extensible     = true
            };

            return(instance);
        }
Example #2
0
        public DateInstance Construct(DateTime value)
        {
            var instance = new DateInstance(Engine)
            {
                Prototype      = PrototypeObject,
                PrimitiveValue = FromDateTime(value),
                Extensible     = true
            };

            return(instance);
        }