Examples of TimePeriod


Examples of ch.njol.skript.util.Timeperiod

        (byte) 127, (short) 2000, -1600000, 1L << 40, -1.5f, 13.37,
        "String",
       
        // Skript
        Color.BLACK, StructureType.RED_MUSHROOM, WeatherType.THUNDER,
        new Date(System.currentTimeMillis()), new Timespan(1337), new Time(12000), new Timeperiod(1000, 23000),
        new Experience(15), new Direction(0, Math.PI, 10), new Direction(new double[] {0, 1, 0}),
        new EntityType(new SimpleEntityData(HumanEntity.class), 300), new CreeperData(), new SimpleEntityData(Snowball.class), new HorseData(Variant.SKELETON_HORSE), new WolfData(), new XpOrbData(50),
       
        // Bukkit - simple classes only
        GameMode.ADVENTURE, Biome.EXTREME_HILLS, DamageCause.FALL,
View Full Code Here

Examples of com.espertech.esper.epl.datetime.TimePeriod

        Integer milliseconds = null;
        if (hasMillisecond)
        {
            milliseconds = getInt(evaluators[exprCtr++].evaluate(eventsPerStream, newData, context));
        }
        return new TimePeriod(year, month, week, day, hours, minutes, seconds, milliseconds);
    }
View Full Code Here

Examples of com.espertech.esper.epl.datetime.eval.TimePeriod

        Integer milliseconds = null;
        if (hasMillisecond)
        {
            milliseconds = getInt(evaluators[exprCtr++].evaluate(eventsPerStream, newData, context));
        }
        return new TimePeriod(year, month, week, day, hours, minutes, seconds, milliseconds);
    }
View Full Code Here

Examples of com.espertech.esper.epl.datetime.eval.TimePeriod

        Integer milliseconds = null;
        if (hasMillisecond)
        {
            milliseconds = getInt(evaluators[exprCtr++].evaluate(eventsPerStream, newData, context));
        }
        return new TimePeriod(year, month, week, day, hours, minutes, seconds, milliseconds);
    }
View Full Code Here

Examples of com.espertech.esper.epl.datetime.eval.TimePeriod

        Integer milliseconds = null;
        if (hasMillisecond)
        {
            milliseconds = getInt(evaluators[exprCtr++].evaluate(eventsPerStream, newData, context));
        }
        return new TimePeriod(year, month, week, day, hours, minutes, seconds, milliseconds);
    }
View Full Code Here

Examples of com.esri.gpt.framework.util.TimePeriod

* <i>hasDelay</i> flag wil be set to <code>true</code>. <i>hasAt</i> flag will
* be set to <code>false</code>.
* @param delay delay (<code>null</code> to clear delay)
*/
public void setDelay(TimePeriod delay) {
  _delay = delay != null ? delay : new TimePeriod();
  _hasDelay = delay != null;
  if (_hasDelay) {
    _hasAt = false;
  }
}
View Full Code Here

Examples of com.google.code.stackexchange.schema.TimePeriod

   * Gets the time period.
   *
   * @return the time period
   */
  protected TimePeriod getTimePeriod() {
    return new TimePeriod(getLastWeekDate(), new Date());
  }
View Full Code Here

Examples of com.quantcomponents.core.model.TimePeriod

  @Override
  public boolean performFinish() {
    boolean realtimeUpdate = page3.isRealtimeUpdate();
    final StockDatabasePresentationWrapper stockDatabase = marketDataManager.createStockDatabase(page2.getSelectedContract(), page3.getDataType(), page3.getBarSize(), page3.isAfterHoursIncluded(), page3.getTimeZone());
    try {
      TimePeriod period = new TimePeriod(page3.getPeriodUnit(), page3.getPeriodAmount());
      endDateTime = null;
      if (realtimeUpdate) {
        endDateTime = new Date();
      } else {
        endDateTime = page3.getEndDate();
View Full Code Here

Examples of net.sf.hajdbc.util.TimePeriod

    {
      CountDownLatch latch = this.latchRef.get();
     
      if (latch != null)
      {
        TimePeriod timeout = LifecycleRegistry.this.factory.getTimeout();
        try
        {
          if (!latch.await(timeout.getValue(), timeout.getUnit()))
          {
            throw LifecycleRegistry.this.exceptionFactory.createException(new TimeoutException());
          }
        }
        catch (InterruptedException e)
View Full Code Here

Examples of net.sf.hajdbc.util.TimePeriod

   * @param value the timeout to set, expressed in the specified units
   * @param unit the time unit with which to qualify the specified timeout value
   */
  public void setTimeout(long value, TimeUnit unit)
  {
    this.timeout = new TimePeriod(value, unit);
  }
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.