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<BaseLiteralNode>
System.IComparable<BaseLiteralNode>
System.IEquatable<LiteralNode>
System.IComparable<LiteralNode>
IValuedNode
INode
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
LiteralNode.CompareTo(LiteralNode)
LiteralNode.Equals(LiteralNode)
BaseLiteralNode.Value
BaseLiteralNode.Language
BaseLiteralNode.DataType
BaseLiteralNode.Equals(Object)
BaseLiteralNode.Equals(INode)
BaseLiteralNode.Equals(IBlankNode)
BaseLiteralNode.Equals(IGraphLiteralNode)
BaseLiteralNode.Equals(ILiteralNode)
BaseLiteralNode.Equals(IUriNode)
BaseLiteralNode.Equals(IVariableNode)
BaseLiteralNode.Equals(BaseLiteralNode)
BaseLiteralNode.ToString()
BaseLiteralNode.CompareTo(INode)
BaseLiteralNode.CompareTo(IBlankNode)
BaseLiteralNode.CompareTo(ILiteralNode)
BaseLiteralNode.CompareTo(IGraphLiteralNode)
BaseLiteralNode.CompareTo(IUriNode)
BaseLiteralNode.CompareTo(IVariableNode)
BaseLiteralNode.CompareTo(BaseLiteralNode)
BaseLiteralNode.GetObjectData(SerializationInfo, StreamingContext)
BaseLiteralNode.ReadXml(XmlReader)
BaseLiteralNode.WriteXml(XmlWriter)
BaseNode._graph
BaseNode._graphUri
BaseNode._nodetype
BaseNode._hashcode
BaseNode.NodeType
BaseNode.Graph
BaseNode.GraphUri
BaseNode.ToString(INodeFormatter)
BaseNode.ToString(INodeFormatter, TripleSegment)
BaseNode.GetHashCode()
BaseNode.GetSchema()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.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>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable

Constructors

| Improve this Doc View Source

DateTimeNode(IGraph, DateTime)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTime value)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTime, DateTimeOffset, String)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTime value, DateTimeOffset offsetValue, string lexicalValue)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
System.DateTimeOffset offsetValue Date Time offset value.
System.String lexicalValue Lexical Value.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTime, DateTimeOffset, String, Uri)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTime value, DateTimeOffset offsetValue, string lexicalValue, Uri datatype)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
System.DateTimeOffset offsetValue Date Time offset value.
System.String lexicalValue Lexical Value.
System.Uri datatype Data Type URI.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTime, String)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTime value, string lexicalValue)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
System.String lexicalValue Lexical Value.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTime, String, Uri)

Creates a new Date Time valued node.
Declaration
protected DateTimeNode(IGraph g, DateTime value, string lexicalValue, Uri datatype)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
System.String lexicalValue Lexical Value.
System.Uri datatype Datatype URI.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTime, Uri)

Creates a new Date Time valued node.
Declaration
protected DateTimeNode(IGraph g, DateTime value, Uri datatype)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTime value Date Time value.
System.Uri datatype Datatype URI.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTimeOffset)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTimeOffset value)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTimeOffset value Date Time value.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTimeOffset, String)

Creates a new Date Time valued node.
Declaration
public DateTimeNode(IGraph g, DateTimeOffset value, string lexicalValue)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTimeOffset value Date Time value.
System.String lexicalValue Lexical Value.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTimeOffset, String, Uri)

Creates a new Date Time valued node.
Declaration
protected DateTimeNode(IGraph g, DateTimeOffset value, string lexicalValue, Uri datatype)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTimeOffset value Date Time value.
System.String lexicalValue Lexical Value.
System.Uri datatype Datatype URI.
| Improve this Doc View Source

DateTimeNode(IGraph, DateTimeOffset, Uri)

Creates a new Date Time valued node.
Declaration
protected DateTimeNode(IGraph g, DateTimeOffset value, Uri datatype)
Parameters
Type Name Description
IGraph g Graph the node belongs to.
System.DateTimeOffset value Date Time value.
System.Uri datatype Datatype URI.

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
System.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
System.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
System.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
System.Single
| Improve this Doc View Source

AsInteger()

Throws an error as date times cannot be converted to integers.
Declaration
public long AsInteger()
Returns
Type Description
System.Int64
| Improve this Doc View Source

AsString()

Gets the date time value as a string.
Declaration
public string AsString()
Returns
Type Description
System.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.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable

Extension Methods

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