Package com.gitblit.utils

Examples of com.gitblit.utils.TimeUtils.yesterday()


    TimeUtils tu = getTimeUtils();
    Date createdDate = ticket.created;
    if (TimeUtils.isToday(createdDate, timezone)) {
      fuzzydate = tu.today();
    } else if (TimeUtils.isYesterday(createdDate, timezone)) {
      fuzzydate = tu.yesterday();
    } else {
      // calculate a fuzzy time ago date
          cal.setTime(createdDate);
          cal.set(Calendar.HOUR_OF_DAY, 0);
          cal.set(Calendar.MINUTE, 0);
View Full Code Here


    TimeUtils tu = getTimeUtils();
    Date createdDate = ticket.created;
    if (TimeUtils.isToday(createdDate, timezone)) {
      fuzzydate = tu.today();
    } else if (TimeUtils.isYesterday(createdDate, timezone)) {
      fuzzydate = tu.yesterday();
    } else {
      // calculate a fuzzy time ago date
          cal.setTime(createdDate);
          cal.set(Calendar.HOUR_OF_DAY, 0);
          cal.set(Calendar.MINUTE, 0);
View Full Code Here

        TimeUtils tu = getTimeUtils();
        Date pushDate = change.date;
        if (TimeUtils.isToday(pushDate, timezone)) {
          fuzzydate = tu.today();
        } else if (TimeUtils.isYesterday(pushDate, timezone)) {
          fuzzydate = tu.yesterday();
        } else {
          fuzzydate = getTimeUtils().timeAgo(pushDate);
        }
        logItem.add(new Label("whenChanged", fuzzydate + ", " + df.format(pushDate)));
View Full Code Here

        TimeUtils tu = getTimeUtils();
        Date changeDate = change.date;
        if (TimeUtils.isToday(changeDate, timezone)) {
          fuzzydate = tu.today();
        } else if (TimeUtils.isYesterday(changeDate, timezone)) {
          fuzzydate = tu.yesterday();
        } else {
          // calculate a fuzzy time ago date
                  cal.setTime(changeDate);
                  cal.set(Calendar.HOUR_OF_DAY, 0);
                  cal.set(Calendar.MINUTE, 0);
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.