Package org.formulacompiler.compiler.internal

Examples of org.formulacompiler.compiler.internal.LocalDate.doubleValue()


      else if (constantValue instanceof Date) {
        throw new IllegalArgumentException( "Saving dates is not supported." );
      }
      else if (constantValue instanceof LocalDate) {
        final LocalDate localDate = (LocalDate) constantValue;
        _stringBuilder.append( localDate.doubleValue() );
      }
      else if (constantValue instanceof Duration) {
        final Duration duration = (Duration) constantValue;
        _stringBuilder.append( duration.doubleValue() );
      }
View Full Code Here


            attributes.put( XMLConstants.Office.DATE_VALUE, dateValue );
          }
          else if (constantValue instanceof LocalDate) {
            attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.DATE );
            final LocalDate localDate = (LocalDate) constantValue;
            final Date date = RuntimeDouble_v2.dateFromNum( localDate.doubleValue(), DataTypeUtil.GMT_TIME_ZONE, ComputationMode.OPEN_OFFICE_CALC );
            final String dateValue = DataTypeUtil.dateToXmlFormat( date, DataTypeUtil.GMT_TIME_ZONE );
            attributes.put( XMLConstants.Office.DATE_VALUE, dateValue );
          }
          else if (constantValue instanceof Duration) {
            attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.TIME );
View Full Code Here

      else if (constantValue instanceof Date) {
        throw new IllegalArgumentException( "Saving dates is not supported." );
      }
      else if (constantValue instanceof LocalDate) {
        final LocalDate localDate = (LocalDate) constantValue;
        _stringBuilder.append( localDate.doubleValue() );
      }
      else if (constantValue instanceof Duration) {
        final Duration duration = (Duration) constantValue;
        _stringBuilder.append( duration.doubleValue() );
      }
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.