Examples of formatDate()


Examples of org.infoglue.cms.applications.common.VisualFormatter.formatDate()

      InfoGlueExportImpl infoGlueExportImpl = new InfoGlueExportImpl();
     
      VisualFormatter visualFormatter = new VisualFormatter();
      names = new VisualFormatter().replaceNonAscii(names, '_');

      String fileName = "RepositoryCopy_" + names + "_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm") + ".xml";
     
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
      String fileSystemName =  filePath + File.separator + fileName;
     
      String encoding = "UTF-8";
View Full Code Here

Examples of org.infoglue.cms.applications.common.VisualFormatter.formatDate()

    File file = new File(CmsPropertyHandler.getSQLUpgradePath() + File.separator + "www.infoglue.org.zip");
    if(file == null || !file.exists())
      throw new SystemException("The file upload must have gone bad as no example site was found.");
   
    String exportId = "Import_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm");
    ProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);
    try
    {
      OptimizedImportController.importRepositories(file, "false", null, null, processBean);
     
View Full Code Here

Examples of org.jbpm.formapi.server.form.FormRepresentationEncoderImpl.formatDate()

        FormEncodingFactory.register(encoder, decoder);
       
        assertNull("result should be null", encoder.fromMap(null));
        assertNull("result should be null", encoder.fromMap(new HashMap<String, Object>()));
       
        assertNotNull("formattedDate shouldn't be null", encoder.formatDate(new Date()));
       
        FormRepresentation form = RESTAbstractTest.createMockForm("myForm", "myParam1", "myParam2");
        FormItemRepresentation item = form.getFormItems().iterator().next();
        Map<String, Object> data = item.getDataMap();
        Object obj = encoder.fromMap(data);
View Full Code Here

Examples of org.olat.core.util.Formatter.formatDate()

    c.put("last", identity.getUser().getProperty(UserConstants.LASTNAME, getLocale()));
    c.put("email", identity.getUser().getProperty(UserConstants.EMAIL, getLocale()));
    c.put("filename", filename);
    Date now = new Date();
    Formatter f = Formatter.getInstance(ureq.getLocale());
    c.put("date", f.formatDate(now));
    c.put("time", f.formatTime(now));
   
    // update attempts counter for this user: one file - one attempts
    AssessableCourseNode acn = (AssessableCourseNode) node;
    acn.incrementUserAttempts(userCourseEnv);
View Full Code Here

Examples of org.olat.core.util.Formatter.formatDate()

              String subject = kalendarEvent.getSubject();
              String location = kalendarEvent.getLocation() == null ? "" : translator.translate("cal.notifications.location",
                  new String[] { kalendarEvent.getLocation() });
              String dateStr;
              if (kalendarEvent.isAllDayEvent()) {
                dateStr = form.formatDate(kalendarEvent.getBegin());
              } else {
                dateStr = form.formatDate(kalendarEvent.getBegin()) + " - " + form.formatDate(kalendarEvent.getEnd());
              }
              String desc = translator.translate("cal.notifications.entry", new String[] { subject, dateStr, location });
              String businessPath = bPath + "[path=" + kalendarEvent.getID() + ":0]";
View Full Code Here

Examples of org.olat.core.util.Formatter.formatDate()

                  new String[] { kalendarEvent.getLocation() });
              String dateStr;
              if (kalendarEvent.isAllDayEvent()) {
                dateStr = form.formatDate(kalendarEvent.getBegin());
              } else {
                dateStr = form.formatDate(kalendarEvent.getBegin()) + " - " + form.formatDate(kalendarEvent.getEnd());
              }
              String desc = translator.translate("cal.notifications.entry", new String[] { subject, dateStr, location });
              String businessPath = bPath + "[path=" + kalendarEvent.getID() + ":0]";
              String urlToSend = NotificationHelper.getURLFromBusinessPathString(p, businessPath);
              SubscriptionListItem subListItem = new SubscriptionListItem(desc, urlToSend, modDate, CSS_CLASS_CALENDAR_ICON);
View Full Code Here

Examples of org.olat.core.util.Formatter.formatDate()

                  new String[] { kalendarEvent.getLocation() });
              String dateStr;
              if (kalendarEvent.isAllDayEvent()) {
                dateStr = form.formatDate(kalendarEvent.getBegin());
              } else {
                dateStr = form.formatDate(kalendarEvent.getBegin()) + " - " + form.formatDate(kalendarEvent.getEnd());
              }
              String desc = translator.translate("cal.notifications.entry", new String[] { subject, dateStr, location });
              String businessPath = bPath + "[path=" + kalendarEvent.getID() + ":0]";
              String urlToSend = NotificationHelper.getURLFromBusinessPathString(p, businessPath);
              SubscriptionListItem subListItem = new SubscriptionListItem(desc, urlToSend, modDate, CSS_CLASS_CALENDAR_ICON);
View Full Code Here

Examples of pt.opensoft.util.DateTime.formatDate()

      BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(
        this.inputFilePath), "ISO-8859-1"));
      PrintStream writer = new PrintStream(new FileOutputStream(this.outputFilePath), false, "ISO-8859-1");

      writer.println("[Vers�o " + this.currentVersion + " (" + now.formatDate() + ")]");
      writer.println();

      boolean fullFile = this.lastVersion.equals(this.currentVersion);

      String line = reader.readLine();
View Full Code Here

Examples of pt.opensoft.util.DateTime.formatDate()

        try {
          data = new DateTime(str, dateFormat);
        } catch (Exception e) {
          return EMPTY_STR;
        }
        return data.formatDate();
      }
    } else if (_type.equals(AMOUNT)) {
      Attribute nullValueAttr = spec.getAttribute("nullValue");
      if (nullValueAttr != null && nullValueAttr.getValue().equals(str)) return EMPTY_STR;
      int _length = Integer.parseInt(spec.getAttribute("length").getValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.