Package railo.runtime.type.dt

Examples of railo.runtime.type.dt.DateTimeImpl


        data.append(',');
        data.append("\"web-0\"");
       
        data.append(',');
       
        DateTime date = new DateTimeImpl();
        // Date
        data.append('"');
        data.append(dateFormat.format(date,"mm/dd/yyyy",TimeZone.getDefault()));
        data.append('"');
       
View Full Code Here


    }
    return instance;
  }

  public DateTime toDateTime(TimeZone tz,int year, int month, int day, int hour, int minute, int second, int milliSecond) throws DateTimeException {
    return new DateTimeImpl(toTime(tz,year, month, day, hour, minute, second,milliSecond),false);
  }
View Full Code Here

  }
 
  public DateTime toDateTime(TimeZone tz,int year, int month, int day, int hour, int minute, int second, int milliSecond, DateTime defaultValue) {
    long time = toTime(tz,year, month, day, hour, minute, second,milliSecond,Long.MIN_VALUE);
    if(time==Long.MIN_VALUE) return defaultValue;
    return new DateTimeImpl(time,false);
 
View Full Code Here

     */
    public DateTime toDateTime(double days) {
      long utc=Math.round(days*DAY_MILLIS);
      utc-=CF_UNIX_OFFSET;
      utc-=getLocalTimeZoneOffset(utc);
      return new DateTimeImpl(utc,false);
    }
View Full Code Here

      try {
      dc = pool.getDatasourceConnection(ThreadLocalPageContext.get(),datasource, username, password);
      SQLImpl sql = new SQLImpl(INSERT);
      sql.addItems(new SQLItemImpl(application,CFTypes.VARCHAR));
      sql.addItems(new SQLItemImpl(message,CFTypes.VARCHAR));
      sql.addItems(new SQLItemImpl(new DateTimeImpl(),CFTypes.DATE));
      new QueryImpl(ThreadLocalPageContext.get(),dc,sql,-1,-1,-1,"query");
    }
      catch (PageException e) {
      console.log(level, application, message);
    }
View Full Code Here

            if(file.getName().equals(".") || file.getName().equals("..")) continue;
            query.addRow();
            row++;
            query.setAt("attributes",row,"");
            query.setAt("isdirectory",row,Caster.toBoolean(file.isDirectory()));
            query.setAt("lastmodified",row,new DateTimeImpl(file.getTimestamp()));
            query.setAt("length",row,Caster.toDouble(file.getSize()));
            query.setAt("mode",row,FTPConstant.getPermissionASInteger(file));
            query.setAt("type",row,FTPConstant.getTypeAsString(file.getType()));
            //query.setAt("permission",row,FTPConstant.getPermissionASInteger(file));
            query.setAt("raw",row,file.getRawListing());
View Full Code Here

    updateObject(columnName, x);
  }

  @Override
  public void updateTime(int columnIndex, Time x) throws SQLException {
    updateObject(columnIndex, new DateTimeImpl(x.getTime(),false));
  }
View Full Code Here

    updateObject(columnIndex, new DateTimeImpl(x.getTime(),false));
  }

  @Override
  public void updateTime(String columnName, Time x) throws SQLException {
    updateObject(columnName, new DateTimeImpl(x.getTime(),false));
  }
View Full Code Here

    updateObject(columnName, new DateTimeImpl(x.getTime(),false));
  }

  @Override
  public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
    updateObject(columnIndex, new DateTimeImpl(x.getTime(),false));
  }
View Full Code Here

    updateObject(columnIndex, new DateTimeImpl(x.getTime(),false));
  }

  @Override
  public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
    updateObject(columnName, new DateTimeImpl(x.getTime(),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.