Class YearFromDateTimeFunction
Represents the XPath year-from-dateTime() function.
Inheritance
System.Object
YearFromDateTimeFunction
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Expressions.Functions.XPath.DateTime
Assembly: dotNetRDF.dll
Syntax
public class YearFromDateTimeFunction : BaseUnaryDateTimeFunction, ISparqlExpression
Constructors
| Improve this Doc View SourceYearFromDateTimeFunction(ISparqlExpression)
Creates a new XPath Year from Date Time function.
Declaration
public YearFromDateTimeFunction(ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression. |
Properties
| Improve this Doc View SourceFunctor
Gets the Functor of the Expression.
Declaration
public override string Functor { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceToString()
Gets the String representation of the function.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceTransform(IExpressionTransformer)
Transforms the Expression using the given Transformer.
Declaration
public override ISparqlExpression Transform(IExpressionTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
IExpressionTransformer | transformer | Expression Transformer. |
Returns
Type | Description |
---|---|
ISparqlExpression |
Overrides
| Improve this Doc View SourceValueInternal(DateTimeOffset)
Calculates the numeric value of the function from the given Date Time.
Declaration
protected override IValuedNode ValueInternal(DateTimeOffset dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTimeOffset | dateTime | Date Time. |
Returns
Type | Description |
---|---|
IValuedNode |