ClassHour
Implements the HOUR function that extracts the hour component (0-23) from a time serial number.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Hour : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionHour
Inherited Members
Constructors
Hour()
Initializes a new instance of the Hour function that extracts the hour component from time values.
Declaration
public Hour()
Fields
FunctionName
The name of the function.
Properties
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 HOUR function by extracting the hour component from the time serial number argument, returning #NUM! error for negative or invalid times.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters
context
FunctionEvaluationContext<double>
The context.
Returns
Functions result as RadExpression.
Overrides