title: get current date and time in groovy?
body: <p>What is the code to get the current date and time in groovy? I've looked around and can't find an easy way to do this. Essentially I'm looking for linux equivalent of <code>date</code></p>
  
  <p>I have :</p>
  
  <pre><code>import java.text.SimpleDateFormat
  
  def call(){
      def date = new Date()
      sdf = new SimpleDateFormat("MM/dd/yyyy")
      return sdf.format(date)
  }
  </code></pre>
  
  <p>but I need to print time as well.</p>