Examples of HpUfisCalendar


Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

   *
   */
  public void processConxAlert() {
    try {
      LOG.info("===================== START/END =====================");
      HpUfisCalendar startDate = new HpUfisCalendar();
      HpUfisCalendar endDate = new HpUfisCalendar();
      //startDate.setTimeZone(HpEKConstants.utcTz);
      //endDate.setTimeZone(HpEKConstants.utcTz);
     
      // Convert to UTC time
      startDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
      endDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
     
      // Add search criteria offset
      startDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertFromOffset(), EnumTimeInterval.Minutes);
      endDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertToOffset(), EnumTimeInterval.Minutes);
     
      // ===========================================
      // ============ LOAD SUMMARY =================
      // ===========================================
      LOG.info("Start for flights from LOAD SUMMARY...");
      // query
      long start = System.currentTimeMillis();
      List<Object> loadBagSumListFlightId = loadBagSummaryBean.findByTimeRange(startDate, endDate);
//      // test data
//      loadBagSumListFlightId.add(new BigDecimal("942440"));
//      loadBagSumListFlightId.add(new BigDecimal("943023"));
//      loadBagSumListFlightId.add(new BigDecimal("212401"));
      LOG.debug("Search LoadBagSummary used: {}", (System.currentTimeMillis() - start));
      // process
      start = System.currentTimeMillis();
      conxRouterBean.routeToProcess(HpUfisAppConstants.CON_LOAD_BAG_SUMMARY, loadBagSumListFlightId);
      LOG.debug("Process LoadBagSummary used: {}", (System.currentTimeMillis() - start));
     
      // query
      start = System.currentTimeMillis();
      List<Object> loadPaxSumFlightId = loadPaxSummaryBean.findByTimeRange(startDate, endDate);
//      // test data
//      loadPaxSumFlightId.add(new BigDecimal("761117"));
//      loadPaxSumFlightId.add(new BigDecimal("942440"));
      LOG.debug("Search LoadPaxSummary used: {}", (System.currentTimeMillis() - start));
      // process
      start = System.currentTimeMillis();
      conxRouterBean.routeToProcess(HpUfisAppConstants.CON_LOAD_PAX_SUMMARY, loadPaxSumFlightId);
      LOG.debug("Process LoadPaxSummary used: {}", (System.currentTimeMillis() - start));
     
      // query
      start = System.currentTimeMillis();
      List<Object> loadUldSumList = loadUldSummaryBean.findByTimeRange(startDate, endDate);
//      // test data
//      loadUldSumList.add(new BigDecimal("170918"));
//      loadUldSumList.add(new BigDecimal("169406"));
//      loadUldSumList.add(new BigDecimal("169942"));
//      loadUldSumList.add(new BigDecimal("171502"));
//      loadUldSumList.add(new BigDecimal("169958"));
//      loadUldSumList.add(new BigDecimal("169814"));
//      loadUldSumList.add(new BigDecimal("178110"));
//      loadUldSumList.add(new BigDecimal("171774"));
//      loadUldSumList.add(new BigDecimal("161678"));
//      loadUldSumList.add(new BigDecimal("177382"));
//      loadUldSumList.add(new BigDecimal("177254"));
//      loadUldSumList.add(new BigDecimal("171998"));
      LOG.debug("Search LoadUldSummary used: {}", (System.currentTimeMillis() - start));
      // process
      start = System.currentTimeMillis();
      conxRouterBean.routeToProcess(HpUfisAppConstants.CON_LOAD_ULD_SUMMARY, loadUldSumList);
      LOG.debug("Process LoadUldSummary used: {}", (System.currentTimeMillis() - start));
     
      // ===========================================
      // ================= AFTTAB ==================
      // ===========================================
      LOG.info("Start for flights from AFTTAB ...");
      HpUfisCalendar aftFromDate = new HpUfisCalendar();
      HpUfisCalendar aftToDate = new HpUfisCalendar();
     
      // Convert to UTC time
      aftFromDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
      aftToDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
     
      // -2 ~ +8 (hours)
      aftFromDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertInitFrom(), EnumTimeInterval.Hours);
      aftToDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertInitTo(), EnumTimeInterval.Hours);
     
      start = System.currentTimeMillis();
      List<EntDbAfttab> flightList = afttabBean.findAllFlightByTimeRange(aftFromDate, aftToDate);
     
      // test data
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

        msgLogged = Boolean.FALSE;
        if (irmtabRef > 0) {
          msgLogged = Boolean.TRUE;
        }
     
      HpUfisCalendar ufisCalendar = new HpUfisCalendar();
      ufisCalendar.setCustomFormat(HpEKConstants.MACS_TIME_FORMAT); // 2012-12-18
                                      // 00:00:00

      EntDbLoadPaxConn edpiod = new EntDbLoadPaxConn();
      LoadPaxConnPK paxConnPk = new LoadPaxConnPK();

      // To check and set the mandatory fields first
      // check as it's a mandatory field
      if (inbDetails.getInbId() != null
          && !inbDetails.getInbId().isEmpty()) {
        edpiod.setIntId(inbDetails.getInbId());
      } else {
        LOG.info("Mandatory field INB_ID is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (inbDetails.getMflId() != null
          && !inbDetails.getMflId().isEmpty()) {
        paxConnPk.setInterfaceFltid(inbDetails.getMflId());
//        edpiod.setInterfaceFltid(inbDetails.getMflId());
      } else {
        LOG.info("Mandatory field MFL_ID is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (inbDetails.getBoardPoint() != null
          && !inbDetails.getBoardPoint().isEmpty()) {
        edpiod.setBoardPoint(inbDetails.getBoardPoint());
      } else {
        LOG.info("Mandatory field BOARD_POINT is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (inbDetails.getOffPoint() != null
          && !inbDetails.getOffPoint().isEmpty()) {
        edpiod.setOffPoint(inbDetails.getOffPoint());
      } else {
        LOG.info("Mandatory field OFF_POINT is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // // check as it's a mandatory field
      // if (inbDetails.getAirlineDesignator() != null &&
      // !inbDetails.getAirlineDesignator().isEmpty()){
      // edpiod.setAirlineCode(inbDetails.getAirlineDesignator());
      // }else{
      // LOG.info("Mandatory field AIRLINE_DESIGNATOR is null or empty, Inbound Message is rejected");
      // // return null;
      // }

      // check as it's a mandatory field
      if (inbDetails.getAirlineDesignator() == null
          || inbDetails.getAirlineDesignator().isEmpty()) {
        LOG.info("Mandatory field AIRLINE_DESIGNATOR is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // // check as it's a mandatory field
      // if (inbDetails.getFlightNumber() != null &&
      // !inbDetails.getFlightNumber().isEmpty()){
      // String strFlightNumber = inbDetails.getFlightNumber();
      // strFlightNumber = HpUfisUtils.formatCedaFltn(strFlightNumber);
      // // if (strFlightNumber.length() != 3){
      // // strFlightNumber =
      // Integer.toString(Integer.parseInt(strFlightNumber));
      // // if (strFlightNumber.length() < 3){
      // // int numAdd = 3 - strFlightNumber.length();
      // // for (int i= 0; i < numAdd; i++ ){
      // // strFlightNumber = "0"+strFlightNumber;
      // // }
      // // }
      // // }
      // edpiod.setFlightNumber(strFlightNumber);
      // }else{
      // LOG.info("Mandatory field FLIGHT_NUMBER is null or empty, Inbound Message is rejected");
      // // return null;
      // }

      // check as it's a mandatory field
      if (inbDetails.getFlightNumber() == null
          || inbDetails.getFlightNumber().isEmpty()) {
        LOG.info("Mandatory field FLIGHT_NUMBER is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // if(inbDetails.getFlightNumberExp() != null){
      // edpiod.setFlightNumberSuffice(inbDetails.getFlightNumberExp());
      // }else{
      // edpiod.setFlightNumberSuffice(" "); // default value
      // }

      // check as it's a mandatory field
      if (inbDetails.getOperationDate() != null
          && !inbDetails.getOperationDate().isEmpty()) {
        ufisCalendar.setTime(inbDetails.getOperationDate(),
            ufisCalendar.getCustomFormat());
        if (inbDetails.getOperationTime().length() >= 4) {
          int hour = 0;
          int min = 0;
          try {
            hour = Integer.parseInt(inbDetails.getOperationTime()
                .substring(0, 2));
            min = Integer.parseInt(inbDetails.getOperationTime()
                .substring(2, 4));
          } catch (Exception e) {
            LOG.info("Inbound message OperationTime parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);

        }
        edpiod.setConxFltDate(ufisCalendar.getTime());
      } else {
        LOG.info("Mandatory field OPERATION_DATE is null or empty, Inbound Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

        }
     
      EntDbLoadPaxConn edpiod = new EntDbLoadPaxConn();
      LoadPaxConnPK paxConnPk = new LoadPaxConnPK();
     
      HpUfisCalendar ufisCalendar = new HpUfisCalendar();
      ufisCalendar.setCustomFormat(HpEKConstants.MACS_TIME_FORMAT); // 2012-12-18
                                      // 00:00:00

      // check as it's a mandatory field
      if (ownDetails.getOnwId() != null
          && !ownDetails.getOnwId().isEmpty()) {
        edpiod.setIntId(ownDetails.getOnwId());
      } else {
        LOG.info("Mandatory field ONW_ID is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (ownDetails.getMflId() != null
          && !ownDetails.getMflId().isEmpty()) {
//        edpiod.setInterfaceFltid(ownDetails.getMflId());
        paxConnPk.setInterfaceFltid(ownDetails.getMflId());
      } else {
        LOG.info("Mandatory field MFL_ID is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (ownDetails.getBoardPoint() != null
          && !ownDetails.getBoardPoint().isEmpty()) {
        edpiod.setBoardPoint(ownDetails.getBoardPoint());
      } else {
        LOG.info("Mandatory field BOARD_POINT is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // check as it's a mandatory field
      if (ownDetails.getOffPoint() != null
          && !ownDetails.getOffPoint().isEmpty()) {
        edpiod.setOffPoint(ownDetails.getOffPoint());
      } else {
        LOG.info("Mandatory field OFF_POINT is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // // check as it's a mandatory field
      // if (ownDetails.getAirlineDesignator() != null &&
      // !ownDetails.getAirlineDesignator().isEmpty()){
      // edpiod.setAirlineCode(ownDetails.getAirlineDesignator());
      // }else{
      // LOG.info("Mandatory field AIRLINE_DESIGNATOR is null or empty, Onward Message is rejected");
      // // return null;
      // }

      // check as it's a mandatory field
      if (ownDetails.getAirlineDesignator() == null
          || ownDetails.getAirlineDesignator().isEmpty()) {
        LOG.info("Mandatory field AIRLINE_DESIGNATOR is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // // check as it's a mandatory field
      // if (ownDetails.getFlightNumber() != null &&
      // !ownDetails.getFlightNumber().isEmpty()){
      // String strFlightNumber = ownDetails.getFlightNumber();
      // strFlightNumber = HpUfisUtils.formatCedaFltn(strFlightNumber);
      // // if (strFlightNumber.length() != 3){
      // // strFlightNumber =
      // Integer.toString(Integer.parseInt(strFlightNumber));
      // // if (strFlightNumber.length() < 3){
      // // int numAdd = 3 - strFlightNumber.length();
      // // for (int i= 0; i < numAdd; i++ ){
      // // strFlightNumber = "0"+strFlightNumber;
      // // }
      // // }
      // // }
      //
      // edpiod.setFlightNumber(strFlightNumber);
      // }else{
      // LOG.info("Mandatory field FLIGHT_NUMBER is null or empty, Onward Message is rejected");
      // // return null;
      // }

      // check as it's a mandatory field
      if (ownDetails.getFlightNumber() == null
          || ownDetails.getFlightNumber().isEmpty()) {
        LOG.info("Mandatory field FLIGHT_NUMBER is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }

      // if(ownDetails.getFlightNumberExp() != null){
      // edpiod.setFlightNumberSuffice(ownDetails.getFlightNumberExp());
      // }else{
      // edpiod.setFlightNumberSuffice(" "); // default value
      // }

      // check as it's a mandatory field
      if (ownDetails.getOperationDate() != null
          && !ownDetails.getOperationDate().isEmpty()) {
        ufisCalendar.setTime(ownDetails.getOperationDate(),
            ufisCalendar.getCustomFormat());
        if (ownDetails.getOperationTime().length() >= 4) {
          int hour = 0;
          int min = 0;
          try {
            hour = Integer.parseInt(ownDetails.getOperationTime()
                .substring(0, 2));
            min = Integer.parseInt(ownDetails.getOperationTime()
                .substring(2, 4));
          } catch (Exception e) {
            LOG.info("Onward message OperationTime parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setConxFltDate(ufisCalendar.getTime());
      } else {
        LOG.info("Mandatory field OPERATION_DATE is null or empty, Onward Message is rejected");
        sendErroNotification(EnumExceptionCodes.EMAND,irmtabRef);
         return null;
      }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

  }
 
  private static String convertFlDateToUTC(DateFormat formatter, String flightDate)
      throws ParseException {
    Date flDate =  formatter.parse(flightDate);
    HpUfisCalendar utcDate = new HpUfisCalendar(flDate);
    utcDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
    return utcDate.getCedaString();
  }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

          loadUld.setUpdatedDate(HpUfisCalendar.getCurrentUTCTime());
          cmdForBroadcasting = HpUfisAppConstants.UfisASCommands.URT;
        }
       
        String uldCreatedDate = convertFlDateToUTC(TZ_DF_FORMATTER, inputUldDetails.getCreatedDate().trim());
        loadUld.setUldCreateDate(new HpUfisCalendar(uldCreatedDate).getTime());
        LOG.debug("ULD Created Date : {}, {}", uldCreatedDate, new HpUfisCalendar(uldCreatedDate).getTime());
       
        loadUld.setUldCreateUser(inputUldDetails.getCreatedBy().trim());
 
        if (!isNullOrEmptyStr(inputUldDetails.getModifiedDate())) {
          String uldModifiedDate = convertFlDateToUTC(TZ_DF_FORMATTER, inputUldDetails.getModifiedDate());
          loadUld.setUldUpdateDate(new HpUfisCalendar(uldModifiedDate).getTime());
          LOG.debug("ULD Modified Date : {}, {}", uldModifiedDate, new HpUfisCalendar(uldModifiedDate).getTime());
        }
 
        if (!isNullOrEmptyStr(inputUldDetails.getModifiedBy())) {
          loadUld.setUldUpdateUser(inputUldDetails.getModifiedBy().trim());
        }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

    header.setHop(HpEKConstants.HOPO);
    header.setUsr(HpEKConstants.LIDO_SOURCE);
    header.setApp(HpEKConstants.LIDO_SOURCE);
    header.setOrig(HpEKConstants.LIDO_SOURCE);
    header.setDest(HpEKConstants.LIDO_SOURCE);
    HpUfisCalendar cur = new HpUfisCalendar(new Date());
    header.setReqt(cur.getCedaString());
   
    return header;
  }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

   */
  private String convertFlDateToUTC(String flightDate)
      throws ParseException {
    SimpleDateFormat dfm = new SimpleDateFormat("ddMMMyyyyHHmmss");
    Date flDate =  dfm.parse(flightDate);
    HpUfisCalendar utcDate = new HpUfisCalendar(flDate);
    utcDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
    return utcDate.getCedaString();
  }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

            addExptInfo(EnumExceptionCodes.ENOUD.name(), uldNumber);
            return false;
          }
          loadUldMove = new EntDbLoadUldMove();
          oldLoadUldMove = loadUldMove;
          loadUldMove.setFltDate(new HpUfisCalendar(flDate).getTime());
          loadUldMove.setUldFltno(flno);
          loadUldMove.setUldNumber(_inputUldScanInfo.getULDNUMBER());
          loadUldMove.setCreatedUser(_inputUldScanInfo.getSCANBY());
          loadUldMove.setCreatedDate(HpUfisCalendar.getCurrentUTCTime());
          cmdForBroadcasting = HpUfisAppConstants.UfisASCommands.IRT.toString();
        }
        else{
          oldLoadUldMove = new EntDbLoadUldMove(loadUldMove);
          loadUldMove.setUpdatedUser(_inputUldScanInfo.getSCANBY());
          loadUldMove.setUpdatedDate(HpUfisCalendar.getCurrentUTCTime());
          cmdForBroadcasting = HpUfisAppConstants.UfisASCommands.URT.toString();
        }
        loadUldMove.setIdFlight(urno);
        loadUldMove.setIdLoadUlds(idUld);
        List<EntDbMdUldLoc> uldLocList = _BasicDataSingleton.getUldLocList();
        List<EntDbMdUldScanAct> uldScanActList = _BasicDataSingleton.getUldScanActList();
       
        boolean isFound = false;
        for(int i = 0; i < uldLocList.size(); i++){
          if(uldLocList.get(i).getUldPlaceLoc().trim().equals(_inputUldScanInfo.getSCANLOCATIONCODE().trim())){
            loadUldMove.setIdScanMdUldLoc(uldLocList.get(i).getId());
            isFound = true;
          }
          //if(!HpUfisUtils.isNullOrEmptyStr(_inputUldScanInfo.getSCANDISLOCCODE())){ // only when the value is exist, check against the md value
            if(uldLocList.get(i).getUldPlaceLoc().trim().equals(_inputUldScanInfo.getSCANDISLOCCODE().trim())){
              loadUldMove.setIdDispMdUldLoc(uldLocList.get(i).getId());
              isFound = true;
            }
          //}
        }
        if (!isFound) {
          addExptInfo(EnumExceptionCodes.WNOMD.name(), String.format("SCAN_LOCATION_CODE/SCAN_DIS_LOC_CODE => %s/%s", _inputUldScanInfo.getSCANLOCATIONCODE().trim(),_inputUldScanInfo.getSCANDISLOCCODE().trim()));
          LOG.warn("Master Data scanLoc/scanDisLoc code is not match in MdUldLoc.");
        }
       
        isFound = false;
        for(int i = 0; i < uldScanActList.size(); i++){
          if(uldScanActList.get(i).getUldScanAction().trim().equals(_inputUldScanInfo.getSCANACTION().trim())){
            loadUldMove.setIdMdUldScanAct(uldScanActList.get(i).getId());
            isFound = true;
            break;
          }
        }
        if (!isFound) {
          addExptInfo(EnumExceptionCodes.WNOMD.name(), String.format("SCAN_ACTION => %s", _inputUldScanInfo.getSCANACTION().trim()));
          LOG.warn("Master Data uldScanAction is not match in MdUldScanAct.");
        }
       
        String status = " ";
        if("UNDO".equals(_inputUldScanInfo.getRECORDTYPE())){
          status = "X";
          cmdForBroadcasting = HpUfisAppConstants.UfisASCommands.DRT.toString();
        }
        loadUldMove.setRecFlag(status);
        loadUldMove.setArrDepFlag(_inputUldScanInfo.getFLIGHTAD());
        loadUldMove.setScanAction(_inputUldScanInfo.getSCANACTION());
        loadUldMove.setScanLocCode(_inputUldScanInfo.getSCANLOCATIONCODE());
        loadUldMove.setScanLocDesc(_inputUldScanInfo.getSCANLOCATIONDESC());
        if(!HpUfisUtils.isNullOrEmptyStr(_inputUldScanInfo.getSCANDATETIME()))
            loadUldMove.setScanDate(new HpUfisCalendar(convertFlDateToUTC(_inputUldScanInfo.getSCANDATETIME())).getTime());
        loadUldMove.setScanUser(_inputUldScanInfo.getSCANBY());
        loadUldMove.setDataSource(HpEKConstants.ULD_SOURCE);
        loadUldMove.setDispLocCode(_inputUldScanInfo.getSCANDISLOCCODE());
        loadUldMove.setDispLocDesc(_inputUldScanInfo.getSCANDISLOCDESC());
       
        if(!HpUfisUtils.isNullOrEmptyStr(_inputUldScanInfo.getRECORDSENDDATE()))
          loadUldMove.setUldSentDate(new HpUfisCalendar(convertFlDateToUTC(_inputUldScanInfo.getRECORDSENDDATE())).getTime());
        EntDbLoadUldMove uldMove = _dlLoadUldMoveBean.merge(loadUldMove);
        if(uldMove != null){
          sendNotifyUldMoveInJson(uldMove, oldLoadUldMove, cmdForBroadcasting);
        }
      }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

  private String convertFlDateToUTC(String flightDate)
      throws ParseException {
    SimpleDateFormat dfm = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    Date flDate =  dfm.parse(flightDate);
    HpUfisCalendar utcDate = new HpUfisCalendar(flDate);
    utcDate.DateAdd(HpUfisAppConstants.OFFSET_LOCAL_UTC, EnumTimeInterval.Hours);
    return utcDate.getCedaString();
  }
View Full Code Here

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar

    Date result = null;
    DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
    DateFormat df2 = new SimpleDateFormat("yyyyMMddHHmmss");
    try {
      if (dateTimeString != null) {
        HpUfisCalendar cal = new HpUfisCalendar(
            df.parse(dateTimeString));

        df.setTimeZone(HpEKConstants.utcTz);
        String date = df.format(cal.getTime());
        // LOG.info("UTC:" + df2.parse(date));
        result = df2.parse(date);
      }
    } catch (Exception e) {
      LOG.error("timezone convertion error" + e);
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.