This code can be read as create an instance of a java calendar which defaults to the current date and time. Formatter for displaying and parsing date time objects. Then use the gettime method to convert this to a java util date reference.