title: Node.js - "RangeError: Maximum call stack size exceeded" error on new Date()
body: <p>I'm creating a Node.js module to enhance the basic console output (I know there are 100+ node modules that do that, my only purpose is to practice node).</p>
  
  <p>I would like to display the time with the console message. Here is the module code:</p>
  
  <pre><code>getTime = function(){
      var date = new Date()
      return date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds()
  }
  
  module.exports.log = function(text){
      console.log(getTime() + ' - ' + text)
  }
  </code></pre>
  
  <p>So I can be able to use my module:</p>
  
  <pre><code>myConsole = require('./myconsole.js')
  myConsole.log('Hello from my own console module')
  </code></pre>
  
  <p>It works well for few tests, but multiple calls (in short time) of myConsole result the following error message from node:</p>
  
  <pre><code>    var date = new Date()
                 ^
  RangeError: Maximum call stack size exceeded
  </code></pre>
  
  <p>Any idea how to avoid that? Do I have to destroy the date instance? (I tried to use <code>delete date</code> but it doesn't work)</p>
  
  <p>Thanks.</p>