You are reading a single comment by @graf and its replies. Click here to read the full conversation.
  • Your method above won't support arguments to the constructor - my code supports zero, 1 and 7 arguments.

    @mgg1010 sorry if I'm missing the point, but you can pass as many arguments as you want

    exports.constructor = function(foo, bar, baz) {
           return new Date(foo, bar, baz);
    }
    
About

Avatar for graf @graf started