com.sage.accpac.sm.crystal.ufl
Class PwFormatTime

java.lang.Object
  extended by com.sage.accpac.sm.crystal.ufl.AbstractAccpacFormulaFunction
      extended by com.sage.accpac.sm.crystal.ufl.PwFormatTime
All Implemented Interfaces:
com.crystaldecisions.reports.formulas.FormulaFunction, com.crystaldecisions.reports.formulas.FormulaFunctionDefinition

public final class PwFormatTime
extends AbstractAccpacFormulaFunction

PwFormatTime (in the C version the "pw" is lower-case) converts a Sage ERP Accpac time stored as an HHMMSShh integer into a Crystal Reports time object but ignoring the "hundredths of a second" part (in order to match the behavior of the existing C UFL).

The Crystal arguments to this function are:

  1. The HHMMSShh integer time to convert (where the hh part is ignored)

Valid hours go from 0 to 23. Valid minutes go from 0 to 59. Valid seconds go from 0 to 59. Valid times go from 0 (midnight) to 23595999 (11:59:59 PM, with the "99" part ignored). An invalid time (such as 24000000) causes an IllegalArgumentException.


Constructor Summary
PwFormatTime()
           
 
Method Summary
 com.crystaldecisions.reports.common.value.FormulaValue evaluate(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments)
          
 com.crystaldecisions.reports.formulas.FormulaFunctionArgumentDefinition[] getArguments()
          
 java.lang.String getIdentifier()
          
 com.crystaldecisions.reports.common.value.FormulaValueType getReturnType()
          
 
Methods inherited from class com.sage.accpac.sm.crystal.ufl.AbstractAccpacFormulaFunction
getIntegerArgument, getStringArgument, validateArgumentValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PwFormatTime

public PwFormatTime()
Method Detail

getIdentifier

public java.lang.String getIdentifier()


getReturnType

public com.crystaldecisions.reports.common.value.FormulaValueType getReturnType()


getArguments

public com.crystaldecisions.reports.formulas.FormulaFunctionArgumentDefinition[] getArguments()


evaluate

public com.crystaldecisions.reports.common.value.FormulaValue evaluate(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments)
                                                                throws com.crystaldecisions.reports.formulas.FormulaFunctionCallException

Throws:
com.crystaldecisions.reports.formulas.FormulaFunctionCallException


Copyright © 2011 Sage Software, Inc. All rights reserved.