public static DateObject Construct(double time) { var instance = new DateObject() { prototype = Interpreter.Instance().CurrentRealm().Intrinsics.DatePrototype, PrimitiveValue = TimeClip(time) }; return(instance); }
public static DateObject Construct(DateTime value) { var instance = new DateObject() { prototype = Interpreter.Instance().CurrentRealm().Intrinsics.DatePrototype, PrimitiveValue = FromDateTime(value) }; return(instance); }