Package railo.runtime.type.dt

Examples of railo.runtime.type.dt.DateTimeImpl


    return -1;
  }
 
  public void setDateHeader(String name, long value) {
    // TODO wrong format
    setHeader(name,new DateTimeImpl(value,false).castToString());
  }
View Full Code Here


  public void sendRedirect(String location) throws IOException {
    addHeader("location",location);
  }
  @Override
  public void setDateHeader(String key, long value) {
    setHeader(key, new DateTimeImpl(value,false).castToString());
  }
View Full Code Here

    setHeader(key, new DateTimeImpl(value,false).castToString());
  }
 
  @Override
  public void addDateHeader(String key, long value) {
    addHeader(key, new DateTimeImpl(value,false).castToString());
  }
View Full Code Here

    Struct sct=new StructImpl();

    sct.set("canRead", Caster.toBoolean(src.isReadable()));
    sct.set("canWrite", Caster.toBoolean(src.isWriteable()));
    sct.set("isHidden", Caster.toBoolean(src.getAttribute(Resource.ATTRIBUTE_HIDDEN)));
    sct.set("lastmodified",new DateTimeImpl(pc,src.lastModified(),false) );
    sct.set(KeyConstants._name,src.getName() );
    sct.set(KeyConstants._parent,src.getParent() );
    sct.set(KeyConstants._path,src.getAbsolutePath() );
    sct.set(KeyConstants._size, Caster.toDouble(src.length()));
    if(src.isDirectory())sct.set(KeyConstants._type, "directory");
View Full Code Here

    /**
     * change the last update attribute and store it
     * @throws SearchException
     */
    private void changeLastUpdate() throws SearchException {
        lastUpdate=new DateTimeImpl();
        searchEngine.store();
    }
View Full Code Here

    public static double call(PageContext pc) throws PageException {
      return call(pc,null);
    }
    public static double call(PageContext pc, Object obj) throws PageException {
      if(obj==null)obj=new DateTimeImpl(pc);
     
      TimeZone tz = ThreadLocalPageContext.getTimeZone(pc);
      DateTime date = DateCaster.toDateAdvanced(obj,tz);
      return format(date);
    }
View Full Code Here

    setHeader(key, new DateTimeImpl(value,false).castToString());
  }
 
  @Override
  public void addDateHeader(String key, long value) {
    addHeader(key, new DateTimeImpl(value,false).castToString());
  }
View Full Code Here

import railo.runtime.type.dt.DateTimeImpl;

public final class GetHttpTimeString implements Function {
 
  public static String call(PageContext pc) {
    return DateTimeUtil.toHTTPTimeString(new DateTimeImpl(pc),true);
  }
View Full Code Here

  public static String call(PageContext pc) {
    return DateTimeUtil.toHTTPTimeString(new DateTimeImpl(pc),true);
  }

  public static String call(PageContext pc , DateTime datetime) {
        return DateTimeUtil.toHTTPTimeString(datetime==null?new DateTimeImpl(pc):datetime,true);
    }
View Full Code Here

public class ApplicationStartTime implements Function {

  private static final long serialVersionUID = -3051854049187102667L;

  public static DateTime call(PageContext pc) throws PageException {
    return new DateTimeImpl(pc.applicationScope().getCreated(),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.