Examples of plusHours()


Examples of org.joda.time.LocalDateTime.plusHours()

    if (timestamp != null) {

      for (DateTimeFormatter formatter : DateUtil.formatters) {
        try {
          LocalDateTime localDateTime = formatter.parseLocalDateTime(timestamp);
          return localDateTime.plusHours(12).toDateTime(DateTimeZone.UTC);

        } catch (IllegalArgumentException e) {
          // silently skips to the next formatter
        }
      }
View Full Code Here

Examples of org.joda.time.Period.plusHours()

                                                                .substring(0,
                                                                           daysFormat.group()
                                                                                     .length() - 1)));
        }
        while(hoursFormat.find()) {
            period = period.plusHours(Integer.parseInt(hoursFormat.group()
                                                                  .substring(0,
                                                                             hoursFormat.group()
                                                                                        .length() - 1)));
        }
        while(minutesFormat.find()) {
View Full Code Here

Examples of org.threeten.bp.OffsetTime.plusHours()

   
    ManageableTrade trade2 = new ManageableTrade(BigDecimal.TEN, ExternalId.of("C", "D"), tradeDate, tradeTime, ExternalId.of("CPS2", "CPV2"));
    trade2.setPremium(100.00);
    trade2.setPremiumCurrency(Currency.GBP);
    trade2.setPremiumDate(tradeDate.plusDays(10));
    trade2.setPremiumTime(tradeTime.plusHours(1));
    position.getTrades().add(trade2);
   
    PositionDocument doc = new PositionDocument();
    doc.setPosition(position);
    _posMaster.add(doc);
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.