Package org.olat.core.util

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


              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

                  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

                  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

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.