コード例 #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);
        }
コード例 #3
0
        public DateInstance Construct(double time)
        {
            var instance = new DateInstance(Engine)
                {
                    Prototype = PrototypeObject,
                    PrimitiveValue = TimeClip(time),
                    Extensible = true
                };

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

            return instance;
        }