Examples of Days


Examples of net.sf.mpxj.planner.schema.Days

      }

      //
      // Process exception days
      //
      Days plannerDays = m_factory.createDays();
      plannerCalendar.setDays(plannerDays);
      List<net.sf.mpxj.planner.schema.Day> dayList = plannerDays.getDay();
      processExceptionDays(mpxjCalendar, dayList);

      m_projectFile.fireCalendarWrittenEvent(mpxjCalendar);

      //
View Full Code Here

Examples of net.sf.mpxj.planner.schema.Days

    * @param mpxjCalendar MPXJ calendar
    * @param plannerCalendar Planner calendar
    */
   private void processExceptionDays(ProjectCalendar mpxjCalendar, net.sf.mpxj.planner.schema.Calendar plannerCalendar) throws MPXJException
   {
      Days days = plannerCalendar.getDays();
      if (days != null)
      {
         List<net.sf.mpxj.planner.schema.Day> dayList = days.getDay();
         if (dayList != null)
         {
            for (net.sf.mpxj.planner.schema.Day day : dayList)
            {
               if (day.getType().equals("day-type"))
View Full Code Here

Examples of org.joda.time.Days

    } else if (lastInvocation.getTime() >> 32 == Integer.MAX_VALUE) {
      // checks if invocation_time is close enough to 'infinity'.
      oldEnough = false;
    } else {
      DateTime lastInvocationDateTime = new DateTime(lastInvocation.getTime());
      Days daysBetween = Days.daysBetween(lastInvocationDateTime, new DateTime());
      oldEnough = daysBetween.getDays() > callType.getDaysToCache();
    }
    return oldEnough;
  }
View Full Code Here

Examples of org.joda.time.Days

        DateTime startDate = new DateTime(input.get(0).toString());
        DateTime endDate = new DateTime(input.get(1).toString());

        // Larger date first
        Days d = Days.daysBetween(endDate, startDate);
        long days = d.getDays();

        return days;

    }
View Full Code Here

Examples of org.joda.time.Days

        final AtomicInteger remainingInserts = new AtomicInteger(dataSet.size());

        for (final MeasurementDataNumeric data : dataSet) {
            DateTime collectionTimeSlice = dateTimeService.getTimeSlice(new DateTime(data.getTimestamp()),
                configuration.getRawTimeSliceDuration());
            Days days = Days.daysBetween(collectionTimeSlice, dateTimeService.now());

            if (days.isGreaterThan(rawDataAgeLimit)) {
                log.info(data + " is older than the raw data age limit of " + rawDataAgeLimit.getDays() +
                    " days. It will not be stored.");
            } else {
                StorageResultSetFuture rawFuture = dao.insertRawData(data);
                StorageResultSetFuture indexFuture = dao.updateIndex(IndexBucket.RAW, collectionTimeSlice.getMillis(),
View Full Code Here

Examples of org.joda.time.Days

              numDays.put(sldn, new ArrayList<Integer>());
            }
            Date pd = rs3.getDate(2);
            DateTime start = new DateTime(pd.getTime());
            DateTime end = new DateTime(log_date.getTime());
            Days d = Days.daysBetween(start, end);
            int diffDays = d.getDays();
            numDays.get(sldn).add(diffDays);
          }
        } catch (Exception e){
          if(log.isErrorEnabled()){
            log.error(e);
View Full Code Here

Examples of org.joda.time.Days

          pd = d;
          windowcount++;
        } else {
          DateTime morerecent = new DateTime(d.getTime());
          DateTime lessrecent = new DateTime(pd.getTime());
          Days days = Days.daysBetween(morerecent, lessrecent);
          windowcount += days.getDays();
          pd = d;
        }
        prevDates.add(d);
      }
     
View Full Code Here

Examples of org.joda.time.Days

        DateTime startDate = new DateTime(input.get(0).toString());
        DateTime endDate = new DateTime(input.get(1).toString());

        // Larger date first
        Days d = Days.daysBetween(endDate, startDate);
        long days = d.getDays();

        return days;

    }
View Full Code Here

Examples of org.joda.time.Days

        DateTime startDate = new DateTime(input.get(0).toString());
        DateTime endDate = new DateTime(input.get(1).toString());

        // Larger date first
        Days d = Days.daysBetween(endDate, startDate);
        long days = d.getDays();

        return days;

    }
View Full Code Here

Examples of org.joda.time.Days

    final DateTime previous = new DateTime(lastRunTime);

    final DateTime current = new DateTime(DateTimeZone.UTC);

    final Days days = Days.daysBetween(previous, current);

    final int count = days.getDays();

    if (count > 1) {
      return true;
    }
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.