ClassDays
Implements the DAYS function that calculates the number of days between two dates by subtracting start date from end date.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Days : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionDays
Inherited Members
Constructors
Days()
Initializes a new instance of the Days function that calculates the difference in days between two dates.
Declaration
public Days()
Fields
FunctionName
The name of the function.
Properties
ArgumentConversionRules
Conversion rules specific to the DAYS function, treating text dates as errors in direct arguments.
Declaration
public override ArgumentConversionRules ArgumentConversionRules { get; }
Property Value
The argument conversion rules as ArgumentConversionRules.
Overrides
FunctionInfo
Metadata describing the function's parameters and description.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
The function info as FunctionInfo.
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<double>)
Evaluates the DAYS function by subtracting the start date from the end date to calculate the number of days between them, returning #NUM! error for negative or out-of-range dates.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters
context
FunctionEvaluationContext<double>
The context.
Returns
Functions result as RadExpression.
Overrides