text: //Time Server
  
  function getDateTime() {
  
      var date = new Date();
  
      var hour = date.getHours();
      hour = (hour < 10 ? "0" : "") + hour;
  
      var min  = date.getMinutes();
      min = (min < 10 ? "0" : "") + min;
  
      var sec  = date.getSeconds();
      sec = (sec < 10 ? "0" : "") + sec;
  
      var year = date.getFullYear();
  
      var month = date.getMonth() + 1;
      month = (month < 10 ? "0" : "") + month;
  
      var day  = date.getDate();
      day = (day < 10 ? "0" : "") + day;
  
      return year + "-" + month + "-" + day + " " + hour + ":" + min;
  
  }
  var server = net.createServer(function (socket) {
  	//console.log('callback is getting called');
  	socket.write(getDateTime() + "\n")
  	socket.end()  
   });
      server.listen(args[0])