Package railo.runtime.type.dt

Examples of railo.runtime.type.dt.DateTimeImpl


    exp=(Array) Duplicator.duplicate(exp,true);
    Iterator<Object> it = exp.valueIterator();
    Struct sct;
    while(it.hasNext()) {
      sct=(Struct) it.next();
      sct.setEL("time",new DateTimeImpl(pageContext,Caster.toLongValue(sct.get("time",null),0),true));
    }
    return exp;
  }
View Full Code Here


    }
   
   
    @Override
  public int doStartTag() throws PageException  {
    now = new DateTimeImpl(pageContext.getConfig());
    try {
          if(action==CACHE) {
              doClientCache();
              doServerCache();
          }
View Full Code Here

    //MetaData.getInstance(cacheItem.getDirectory()).add(cacheItem.getName(), cacheItem.getRaw());
  }
 

    private DateTime getExpiresDate() {
    return new DateTimeImpl(pageContext,getExpiresTime(),false);
  }
View Full Code Here

      }
      else query=executeDatasoure(sql,result!=null,pageContext.getTimeZone());
      //query=(dbtype!=null && dbtype.equals("query"))?executeQoQ(sql):executeDatasoure(sql,result!=null);
     
      if(cachedWithin!=null) {
        DateTimeImpl cachedBefore = null;
        //if(cachedWithin!=null)
          cachedBefore=new DateTimeImpl(pageContext,System.currentTimeMillis()+cachedWithin.getMillis(),false);
                  pageContext.getQueryCache().set(pageContext,sql,datasource!=null?datasource.getName():null,username,password,query,cachedBefore);
               
               
      }
      exe=query.getExecutionTime();
View Full Code Here

   * @param date Date to serialize
   * @param sb
   * @throws ConverterException
   */
  private void _serializeDate(Date date, StringBuffer sb) throws ConverterException {
    _serializeDateTime(new DateTimeImpl(date),sb);
  }
View Full Code Here

   * @param date Date to serialize
   * @return serialized date
   * @throws ConverterException
   */
  private String _serializeDate(Date date) {
    return _serializeDateTime(new DateTimeImpl(date));
  }
View Full Code Here

   * @param date Date to serialize
   * @param sb
   * @throws ConverterException
   */
  private void _serializeDate(Date date, StringBuffer sb) {
    _serializeDateTime(new DateTimeImpl(date),sb);
  }
View Full Code Here

    } catch (PageException e) {
    }
   
    if(addAddionalInfo) {
      debugging.setEL(KeyConstants._cgi,pc.cgiScope());
      debugging.setEL(KeyImpl.init("starttime"),new DateTimeImpl(starttime,false));
      debugging.setEL(KeyConstants._id,pc.getId());
    }

    debugging.setEL(KeyConstants._pages,qryPage);
    debugging.setEL(PAGE_PARTS,qryPart);
View Full Code Here

        }
      }
      return Long.valueOf(l);
    }
    else if(type==Variant.VariantObject) return variant.toEnumVariant();
    else if(type==Variant.VariantDate) return new DateTimeImpl((long)variant.getDate(),true);
    else if(type==Variant.VariantString) return variant.getString();
    else if(type==Variant.VariantBoolean) return variant.getBoolean()?Boolean.TRUE:Boolean.FALSE;
    else if(type==Variant.VariantByte) return new Byte(variant.getByte());
    else if(type==Variant.VariantVariant) {
        throw new ExpressionException("type variant is not supported");
View Full Code Here

    else if(right instanceof Date)    return left.compareTo(Caster.toDate(right,null));
    else if(right instanceof Castablereturn compare(left.castToString() , ((Castable)right).castToString() );
    else if(right instanceof Localereturn compare(left.castToString() , (Locale)right);
    else if(right == null)         return compare(left.castToString(), "" );
    else if(right instanceof Characterreturn left.compareTo(((Character)right).toString());
    else if(right instanceof Calendarreturn left.compareTo(new DateTimeImpl(((Calendar)right).getTime()) );
    else return error(true,false);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.dt.DateTimeImpl

Copyright © 2018 www.massapicom. 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.