Examples of ISODateFormat


Examples of com.esri.gpt.framework.isodate.IsoDateFormat

    @Override
    public Date getModifiedDate() {
      String modifedDateAsString = record.getModifiedDate();
      try {
        return new IsoDateFormat().parseObject(modifedDateAsString);
      } catch (ParseException ex) {
        return null;
      }
    }
  };
View Full Code Here

Examples of com.esri.gpt.framework.isodate.IsoDateFormat

        value = parseDateTime(value);
        if(dateFormat.length() > 0){
          SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
          Date dt = null;
        try {
                    dt = new IsoDateFormat().parseObject(value);
                    if (dt!=null) {
                      value = sdf.format(dt);
                    } else {
                      value = "";
                    }
View Full Code Here

Examples of com.esri.gpt.framework.isodate.IsoDateFormat

  LOGGER.finer("Advancing to the next group of records.");
  try {
    nextCswrecords = null;

    // submit CSW request
    IsoDateFormat IDF = new IsoDateFormat();
    CswSearchCriteria cswCriteria = new CswSearchCriteria();
    cswCriteria.setMaxRecords(criteria!=null && criteria.getMaxRecords()!=null? criteria.getMaxRecords(): 20);
    cswCriteria.setStartPosition(nextStartRecord);
    cswCriteria.setSearchText(criteria!=null && criteria.getSearchText()!=null? criteria.getSearchText(): "");
    cswCriteria.setEnvelope(getEnvelope());
View Full Code Here

Examples of com.esri.gpt.framework.isodate.IsoDateFormat

               
                if (!app.append("dc:title", ii.getTitle())) {
                  app.append("dc:title", ii.getName());
                }
                if (ii.getModifiedDate()!=null) {
                  app.append("dc:date", new IsoDateFormat().format(ii.getModifiedDate()));
                }
                app.append("dc:identifier", ii.getId());
                if (!app.append("dc:description", ii.getDescription())) {
                  app.append("dc:description", ii.getSnippet());
                }
View Full Code Here

Examples of com.esri.gpt.framework.isodate.IsoDateFormat

    public Date getModifiedDate() {
      String modifedDateAsString = record.getModifiedDate();
      try {
        return new IsoDateFormat().parseObject(modifedDateAsString);
      } catch (ParseException ex) {
        return null;
      }
    }
  };
View Full Code Here

Examples of com.esri.gpt.framework.isodate.IsoDateFormat

  String beginPosition = sosContext.getBeginPosition();
  String endPosition = sosContext.getEndPosition();
  if (beginPosition.length() > 0) {
    if (endPosition.length() == 0) {
      Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
      endPosition = (new IsoDateFormat()).format(cal.getTime());
    }
    postData.append("<sos:eventTime>");
    postData.append("<ogc:TM_During>");
    postData.append("<ogc:PropertyName>om:samplingTime</ogc:PropertyName>");
    postData.append("<gml:TimePeriod>");
View Full Code Here

Examples of com.impossibl.postgres.datetime.ISODateFormat

  public BasicContext(SocketAddress address, Properties settings, Map<String, Class<?>> targetTypeMap) throws IOException, NoticeException {
    this.targetTypeMap = new HashMap<>(targetTypeMap);
    this.settings = settings;
    this.charset = UTF_8;
    this.timeZone = TimeZone.getTimeZone("UTC");
    this.dateFormatter = new ISODateFormat();
    this.timeFormatter = new ISOTimeFormat();
    this.timestampFormatter = new ISOTimestampFormat();
    this.notificationListeners = new ConcurrentHashMap<>();
    this.registry = new Registry(this);
    this.protocol = new ProtocolFactoryImpl().connect(address, this);
View Full Code Here

Examples of com.impossibl.postgres.datetime.ISODateFormat

        else {

          dateFormatter = DateStyle.getDateFormatter(parsedDateStyle);
          if (dateFormatter == null) {
            logger.warning("Unknown Date format, reverting to default");
            dateFormatter = new ISODateFormat();
          }

          timeFormatter = DateStyle.getTimeFormatter(parsedDateStyle);
          if (timeFormatter == null) {
            logger.warning("Unknown Time format, reverting to default");
View Full Code Here

Examples of com.impossibl.postgres.datetime.ISODateFormat

   */
  public static DateTimeFormat getDateFormatter(String[] dateStyle) {

    switch(dateStyle[0]) {
      case "ISO":
        return new ISODateFormat();

      case "POSTGRES":
      case "SQL":
      case "GERMAN":
      default:
View Full Code Here

Examples of liquibase.util.ISODateFormat

    public ColumnConfig setValueDate(String valueDate) {
        if (valueDate == null || valueDate.equalsIgnoreCase("null")) {
            this.valueDate = null;
        } else {
            try {
                this.valueDate = new ISODateFormat().parse(valueDate);
            } catch (ParseException e) {
                //probably a function
                this.valueComputed = new DatabaseFunction(valueDate);
            }
        }
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.