New to Telerik Document Processing? Start a free 30-day trial

Hour

Class

Implements the HOUR function that extracts the hour component (0-23) from a time serial number.

Definition

Constructors

Initializes a new instance of the Hour function that extracts the hour component from time values.

C#
public Hour()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing the function's parameters and description.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name "HOUR" as recognized in formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the HOUR function by extracting the hour component from the time serial number argument, returning #NUM! error for negative or invalid times.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)