Examples of DateImpl


Examples of railo.runtime.type.dt.DateImpl

        return new TimeSpanImpl(day,hour,minute,second);
    }

    @Override
    public Date createDate(long time) {
        return new DateImpl(time);
    }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

        return DateTimeUtil.getInstance().toDateTime(ThreadLocalPageContext.getTimeZone(),year,month,day,hour,minute,second,millis);
    }

    @Override
    public Date createDate(int year, int month, int day) throws ExpressionException {
        return new DateImpl(DateTimeUtil.getInstance().toDateTime(null,year,month,day, 0, 0, 0,0));
    }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

     * @return Attribute Value
     */
    public Date toDate(Config config,Element el,String attributeName) {
        DateTime dt = toDateTime(config,el,attributeName);
        if(dt==null) return null;
        return new DateImpl(dt);
    }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

     * @param attributeName Name of the Attribute to read
     * @param defaultValue if attribute doesn't exist return default value
     * @return Attribute Value
     */
    public Date toDate(Element el,String attributeName, Date defaultValue) {
        return new DateImpl(toDateTime(el,attributeName,defaultValue));
    }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

  * @param objStartDate value to set
   * @throws PageException
  **/
  public void setStartdate(Object objStartDate) throws PageException  {
    if(StringUtil.isEmpty(objStartDate)) return;
    this.startdate=new DateImpl(DateCaster.toDateAdvanced(objStartDate,pageContext.getTimeZone()));
  }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

  * @param enddate value to set
   * @throws PageException
  **/
  public void setEnddate(Object enddate) throws PageException  {
      if(StringUtil.isEmpty(enddate)) return;
    this.enddate=new DateImpl(DateCaster.toDateAdvanced(enddate,pageContext.getTimeZone()));
  }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

      else if(type==Types.TIME) {
          return new TimeImpl(DateCaster.toDateAdvanced(item.getValue(),null)).castToString();
      }
    // date types
      else if(type==Types.DATE) {
          return new DateImpl(DateCaster.toDateAdvanced(item.getValue(),null)).castToString();
      }
    // time types
      else if(type==Types.TIMESTAMP) {
          return DateCaster.toDateAdvanced(item.getValue(),null).castToString();
      }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

      else if(type==Types.TIME) {
          return new TimeImpl(DateCaster.toDateAdvanced(item.getValue(),null)).castToString();
      }
    // date types
      else if(type==Types.DATE) {
          return new DateImpl(DateCaster.toDateAdvanced(item.getValue(),null)).castToString();
      }
    // time types
      else if(type==Types.TIMESTAMP) {
          return DateCaster.toDateAdvanced(item.getValue(),null).castToString();
      }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

      else if(type==Types.TIME) {
          return new TimeImpl(DateCaster.toDateAdvanced(value,null)).castToString();
      }
    // time types
      else if(type==Types.DATE) {
          return new DateImpl(DateCaster.toDateAdvanced(value,null)).castToString();
      }
    // time types
      else if(type==Types.TIMESTAMP) {
          return DateCaster.toDateAdvanced(value,null).castToString();
      }
View Full Code Here

Examples of railo.runtime.type.dt.DateImpl

import railo.runtime.type.dt.DateImpl;
import railo.runtime.type.dt.DateTime;

public final class CreateODBCDate implements Function {
  public static DateTime call(PageContext pc , DateTime datetime) {
    return new DateImpl(datetime);
  }
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.