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

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

            return(instance);
        }