Class
Hour

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

Definition

Constructors

Hour()

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

Declaration

cs-api-definition
public Hour()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

FunctionInfo

Metadata describing the function's parameters and description.

Declaration

cs-api-definition
public override FunctionInfo FunctionInfo { get; }

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

The function name "HOUR" as recognized in formulas.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

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

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)

Parameters

context

FunctionEvaluationContext<double>

The context.

Returns

RadExpression

Functions result as RadExpression.

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