Пример #1
0
  /**
   * Place the last modified date in the format dd MMM yyyy HH:mm:ss" e.g., 17 Jun 2008 09:30:10.
   * This is the same format as the task DEF file form CCP4I
   *
   * @param file
   */
  private void readScriptFileModifiedDate(File file) {

    // 17 Jun 2008  09:30:10
    SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy  HH:mm:ss");

    taskObject.setRunDateTime(sdf.format(file.lastModified()));
  }