concept date in category groovy

This is an excerpt from Manning's book Groovy in Action, Second Edition.
import java.util.*; // Java Date today = new Date(); // Java today = new Date() // Groovy require 'date' # Ruby today = Date.new # Ruby import java.util._ // Scala var today = new Date // Scala (import '(java.util Date)) ; Clojure (def today (new Date)) ; Clojure (def today (Date.)) ; Clojure alternative
Consequently, calling Java from Groovy is a nonissue. When developing in Groovy, you end up doing this all the time without noticing. Every Groovy type is a subtype of java.lang.Object. Every Groovy object is an instance of a type in the normal way. A Groovy date is a java.util.Date. You can call all methods on it that you know are available for a Date, and you can pass it as an argument to any method that expects a Date.
This book aims to provide the necessary documentation for Groovy; however, other sources can provide more detailed, up-to-date, and responsive information. We only list a few starting points here—the community has expanded so much that the online output is difficult to put under one umbrella.