Examples of DateTime


Examples of ch.agent.t2.time.DateTime

    }

    @Override
    public DateTime scan(String value) throws T2DBException {
      try {
        return new DateTime(value);
      } catch (Exception e) {
        throw T2DBMsg.exception(e, D.D10107, value, ValueType.class.getName());
      }
    }
View Full Code Here

Examples of ch.pollet.jzic.datetime.DateTime

        }
    }

    private TreeSet<Period> computePeriods(TreeSet<Zone> zoneData) throws DateTimeException {
        TreeSet<Period> compiledZone = new TreeSet<Period>();
        DateTime from = new DateTime();

        from.setYear(Integer.MIN_VALUE);
        //from.setYear(minYear);
        from.setMonth(1);
        from.setDay(1);
        from.setHour(0);
        from.setMinute(0);
        from.setSecond(0);
        from.setType(DateTime.Type.UTC);

        for (Zone zone : zoneData) {
            Period period = new Period(zone);

            period.setFrom(from);
View Full Code Here

Examples of com.aragost.javahg.DateTime

        boolean negative = match('-');
        int timezoneOffset = 1000 * decimalIntUpTo(stopByte);
        if (negative) {
            timezoneOffset = -timezoneOffset;
        }
        return new DateTime(millis, timezoneOffset);
    }
View Full Code Here

Examples of com.asakusafw.runtime.value.DateTime

            all.set("c_long", 100000L);
            all.set("c_float", 1.5f);
            all.set("c_double", 2.5f);
            all.set("c_decimal", new BigDecimal("3.1415"));
            all.set("c_date", new Date(2011, 9, 1));
            all.set("c_datetime", new DateTime(2011, 12, 31, 23, 59, 59));
            p.setParameters(all.unwrap());
            ps.executeUpdate();

            ps.close();
View Full Code Here

Examples of com.bloomberglp.blpapi.Datetime

      Element fieldDataArray = securityElem.getElement(FIELD_DATA);

      int numValues = fieldDataArray.numValues();
      for (int i = 0; i < numValues; i++) {
        Element fieldData = fieldDataArray.getValueAsElement(i);
        Datetime date = fieldData.getElementAsDate("date");
        LocalDate ldate = LocalDate.of(date.year(), date.month(), date.dayOfMonth());
        double lastPrice = fieldData.getElementAsFloat64(field);
        bld.put(ldate, lastPrice);
      }
    }
View Full Code Here

Examples of com.enernoc.open.oadr2.model.DateTime

                .withModificationNumber(0)
                .withEventStatus(EventStatusEnumeratedType.FAR)
                .withPriority(1L)
                .withEiMarketContext(new EiMarketContext(
                    new MarketContext("http://enernoc.com")))
                .withCreatedDateTime(new DateTime(startDttm)))
            .withEiActivePeriod(new EiActivePeriod()
                .withProperties(new Properties()
                    .withDtstart(new Dtstart(new DateTime(startDttm)))
                    .withDuration(new DurationPropType(new DurationValue("PT1M")))
                    .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                    .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                ))
            .withEiEventSignals( new EiEventSignals()
View Full Code Here

Examples of com.enernoc.open.oadr2.model.v20b.xcal.DateTime

                    .withModificationNumber(0)
                    .withEventStatus(EventStatusEnumeratedType.FAR)
                    .withPriority(1L)
                    .withEiMarketContext(new EiMarketContext(
                        new MarketContext("http://enernoc.com")))
                    .withCreatedDateTime(new DateTime(startDttm)))
                .withEiActivePeriod(new EiActivePeriod()
                    .withProperties(new Properties()
                        .withDtstart(new Dtstart(new DateTime(startDttm)))
                        .withDuration(new DurationPropType(new DurationValue("PT1M")))
                        .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                        .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                    ))
                .withEiEventSignals( new EiEventSignals()
                    .withEiEventSignals( new EiEventSignal()
                        .withSignalID("hi there")
                        .withCurrentValue(new CurrentValue(new PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
                        .withIntervals( new Intervals()
                            .withIntervals( new Interval()
                              .withStreamPayloadBases( eiObjectFactory.createSignalPayload(
                                      new SignalPayload( eiObjectFactory.createPayloadFloat(
                                              new PayloadFloatType( 1.0f) ) ) ) )
                              .withDuration( new DurationPropType( new DurationValue( "PT1M" )) )
                              .withDtstart( new Dtstart(new DateTime( startDttm )) )
                            )
                        )
                    )
                )
            )
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.joda.time.DateTime

    public ReadableDateTime deserialize(JsonParser jp, DeserializationContext ctxt)
        throws IOException, JsonProcessingException
    {
        JsonToken t = jp.getCurrentToken();
        if (t == JsonToken.VALUE_NUMBER_INT) {
            return new DateTime(jp.getLongValue(), DateTimeZone.UTC);
        }
        if (t == JsonToken.VALUE_STRING) {
            String str = jp.getText().trim();
            if (str.length() == 0) { // [JACKSON-360]
                return null;
            }
            return new DateTime(str, DateTimeZone.UTC);
        }
        throw ctxt.mappingException(getValueClass());
    }
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201208.DateTime

    numberValue2.setValue("1.02");

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201211.DateTime

    numberValue2.setValue("1.02");

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
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.