protected Comment getGeneratedBy(boolean timestamp) { String text = "Generated by javadoc"; // marker string, deliberately not localized if (timestamp) { Calendar calendar = new GregorianCalendar(TimeZone.getDefault()); Date today = calendar.getTime(); text += " (" + configuration.getDocletSpecificBuildDate() + ") on " + today; } return new Comment(text); }
/** * Get the day and date information for today, depending upon user option. * * @return String Today. * @see java.util.Calendar * @see java.util.GregorianCalendar * @see java.util.TimeZone */ public String today() { Calendar calendar = new GregorianCalendar(TimeZone.getDefault()); return calendar.getTime().toString(); }