コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: HtmlDocWriter.java プロジェクト: AllenWeb/openjdk-1
 /**
  * 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();
 }