Show / Hide Table of Contents

Class DateTimeNode

Valued Node representing a Date Time value.

Inheritance
System.Object
BaseNode
BaseLiteralNode
LiteralNode
DateTimeNode
DateNode
Implements
ILiteralNode
System.IEquatable<T><BaseLiteralNode>
System.IComparable<T><BaseLiteralNode>
System.IEquatable<T><LiteralNode>
System.IComparable<T><LiteralNode>
IValuedNode
INode
System.IComparable<T><INode>
System.IComparable<T><IBlankNode>
System.IComparable<T><IGraphLiteralNode>
System.IComparable<T><ILiteralNode>
System.IComparable<T><IUriNode>
System.IComparable<T><IVariableNode>
System.IComparable<T><IRefNode>
System.IComparable<T><ITripleNode>
System.IEquatable<T><INode>
System.IEquatable<T><IBlankNode>
System.IEquatable<T><IGraphLiteralNode>
System.IEquatable<T><ILiteralNode>
System.IEquatable<T><IUriNode>
System.IEquatable<T><IVariableNode>
System.IEquatable<T><IRefNode>
System.IEquatable<T><ITripleNode>
Inherited Members
LiteralNode.CompareTo(LiteralNode)
LiteralNode.Equals(LiteralNode)
BaseLiteralNode.Value
BaseLiteralNode.Language
BaseLiteralNode.DataType
BaseLiteralNode.Equals(object)
BaseLiteralNode.GetHashCode()
BaseLiteralNode.Equals(INode)
BaseLiteralNode.Equals(IRefNode)
BaseLiteralNode.Equals(IBlankNode)
BaseLiteralNode.Equals(IGraphLiteralNode)
BaseLiteralNode.Equals(ILiteralNode)
BaseLiteralNode.Equals(IUriNode)
BaseLiteralNode.Equals(IVariableNode)
BaseLiteralNode.Equals(ITripleNode)
BaseLiteralNode.Equals(BaseLiteralNode)
BaseLiteralNode.ToString()
BaseLiteralNode.CompareTo(INode)
BaseLiteralNode.CompareTo(IRefNode)
BaseLiteralNode.CompareTo(IBlankNode)
BaseLiteralNode.CompareTo(ILiteralNode)
BaseLiteralNode.CompareTo(IGraphLiteralNode)
BaseLiteralNode.CompareTo(IUriNode)
BaseLiteralNode.CompareTo(IVariableNode)
BaseLiteralNode.CompareTo(ITripleNode)
BaseLiteralNode.CompareTo(BaseLiteralNode)
BaseNode._nodeType
BaseNode.NodeType
BaseNode.ToString(INodeFormatter)
BaseNode.ToString(INodeFormatter, TripleSegment)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRdf.dll
Syntax
public class DateTimeNode : LiteralNode, ILiteralNode, IEquatable<BaseLiteralNode>, IComparable<BaseLiteralNode>, IEquatable<LiteralNode>, IComparable<LiteralNode>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IComparable<IRefNode>, IComparable<ITripleNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, IEquatable<IRefNode>, IEquatable<ITripleNode>

Constructors

| Improve this Doc View Source

DateTimeNode(DateTime, DateTimeOffset, string, bool)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTime value, DateTimeOffset offsetValue, string lexicalValue, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTime value

Date Time value.

System.DateTimeOffset offsetValue

Date Time offset value.

string lexicalValue

Lexical Value.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTime, DateTimeOffset, string, Uri, bool)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTime value, DateTimeOffset offsetValue, string lexicalValue, Uri datatype, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTime value

Date Time value.

System.DateTimeOffset offsetValue

Date Time offset value.

string lexicalValue

Lexical Value.

System.Uri datatype

Data Type URI.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTime, string, bool)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTime value, string lexicalValue, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTime value

Date Time value.

string lexicalValue

Lexical Value.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTime, string, Uri, bool)

Creates a new Date Time valued node.

Declaration
protected DateTimeNode(DateTime value, string lexicalValue, Uri datatype, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTime value

Date Time value.

string lexicalValue

Lexical Value.

System.Uri datatype

Datatype URI.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTime, Uri)

Creates a new Date Time valued node.

Declaration
protected DateTimeNode(DateTime value, Uri datatype)
Parameters
Type Name Description
System.DateTime value

Date Time value.

System.Uri datatype

Datatype URI.

| Improve this Doc View Source

DateTimeNode(DateTime)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTime value)
Parameters
Type Name Description
System.DateTime value

Date Time value.

| Improve this Doc View Source

DateTimeNode(DateTimeOffset, string, bool)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTimeOffset value, string lexicalValue, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTimeOffset value

Date Time value.

string lexicalValue

Lexical Value.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTimeOffset, string, Uri, bool)

Creates a new Date Time valued node.

Declaration
protected DateTimeNode(DateTimeOffset value, string lexicalValue, Uri datatype, bool normalizeLiteralValue = false)
Parameters
Type Name Description
System.DateTimeOffset value

Date Time value.

string lexicalValue

Lexical Value.

System.Uri datatype

Datatype URI.

System.Boolean normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Improve this Doc View Source

DateTimeNode(DateTimeOffset, Uri)

Creates a new Date Time valued node.

Declaration
protected DateTimeNode(DateTimeOffset value, Uri datatype)
Parameters
Type Name Description
System.DateTimeOffset value

Date Time value.

System.Uri datatype

Datatype URI.

| Improve this Doc View Source

DateTimeNode(DateTimeOffset)

Creates a new Date Time valued node.

Declaration
public DateTimeNode(DateTimeOffset value)
Parameters
Type Name Description
System.DateTimeOffset value

Date Time value.

Properties

| Improve this Doc View Source

EffectiveType

Gets the URI of the datatype this valued node represents as a String.

Declaration
public string EffectiveType { get; }
Property Value
Type Description
string
| Improve this Doc View Source

NumericType

Gets the numeric type of the node.

Declaration
public SparqlNumericType NumericType { get; }
Property Value
Type Description
SparqlNumericType

Methods

| Improve this Doc View Source

AsBoolean()

Throws an error as date times cannot be converted to booleans.

Declaration
public bool AsBoolean()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

AsDateTime()

Gets the date time value of the node.

Declaration
public DateTime AsDateTime()
Returns
Type Description
System.DateTime
| Improve this Doc View Source

AsDateTimeOffset()

Gets the date time value of the node.

Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type Description
System.DateTimeOffset
| Improve this Doc View Source

AsDecimal()

Throws an error as date times cannot be converted to decimals.

Declaration
public decimal AsDecimal()
Returns
Type Description
decimal
| Improve this Doc View Source

AsDouble()

Throws an error as date times cannot be converted to doubles.

Declaration
public double AsDouble()
Returns
Type Description
double
| Improve this Doc View Source

AsFloat()

Throws an error as date times cannot be converted to floats.

Declaration
public float AsFloat()
Returns
Type Description
float
| Improve this Doc View Source

AsInteger()

Throws an error as date times cannot be converted to integers.

Declaration
public long AsInteger()
Returns
Type Description
long
| Improve this Doc View Source

AsString()

Gets the date time value as a string.

Declaration
public string AsString()
Returns
Type Description
string
| Improve this Doc View Source

AsTimeSpan()

Throws an error as date times cannot be cast to a time span.

Declaration
public TimeSpan AsTimeSpan()
Returns
Type Description
System.TimeSpan

Implements

ILiteralNode
System.IEquatable<T>
System.IComparable<T>
System.IEquatable<T>
System.IComparable<T>
IValuedNode
INode
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
DynamicExtensions.AsDynamic(INode, IGraph, Uri)
Extensions.EffectiveBooleanValue(INode)
Extensions.IsListRoot(INode, IGraph)
ValuedNodeExtensions.AsValuedNode(INode)
Extensions.AsEnumerable<T>(T)
ValuedNodeExtensions.AsSafeBoolean(IValuedNode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DateTimeNode(DateTime, DateTimeOffset, string, bool)
    • DateTimeNode(DateTime, DateTimeOffset, string, Uri, bool)
    • DateTimeNode(DateTime, string, bool)
    • DateTimeNode(DateTime, string, Uri, bool)
    • DateTimeNode(DateTime, Uri)
    • DateTimeNode(DateTime)
    • DateTimeNode(DateTimeOffset, string, bool)
    • DateTimeNode(DateTimeOffset, string, Uri, bool)
    • DateTimeNode(DateTimeOffset, Uri)
    • DateTimeNode(DateTimeOffset)
  • Properties
    • EffectiveType
    • NumericType
  • Methods
    • AsBoolean()
    • AsDateTime()
    • AsDateTimeOffset()
    • AsDecimal()
    • AsDouble()
    • AsFloat()
    • AsInteger()
    • AsString()
    • AsTimeSpan()
  • Implements
  • Extension Methods
Back to top Generated by DocFX