Show / Hide Table of Contents

Class DateTimeNode

Valued Node representing a Date Time value.

Inheritance
object
BaseNode
BaseLiteralNode
LiteralNode
DateTimeNode
DateNode
Implements
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>
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

| Edit this page View Source

DateTimeNode(DateTime)

Creates a new Date Time valued node.

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

Date Time value.

| Edit this page 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
DateTime value

Date Time value.

DateTimeOffset offsetValue

Date Time offset value.

string lexicalValue

Lexical Value.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page 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
DateTime value

Date Time value.

DateTimeOffset offsetValue

Date Time offset value.

string lexicalValue

Lexical Value.

Uri datatype

Data Type URI.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page 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
DateTime value

Date Time value.

string lexicalValue

Lexical Value.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page 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
DateTime value

Date Time value.

string lexicalValue

Lexical Value.

Uri datatype

Datatype URI.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page View Source

DateTimeNode(DateTime, Uri)

Creates a new Date Time valued node.

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

Date Time value.

Uri datatype

Datatype URI.

| Edit this page View Source

DateTimeNode(DateTimeOffset)

Creates a new Date Time valued node.

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

Date Time value.

| Edit this page 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
DateTimeOffset value

Date Time value.

string lexicalValue

Lexical Value.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page 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
DateTimeOffset value

Date Time value.

string lexicalValue

Lexical Value.

Uri datatype

Datatype URI.

bool normalizeLiteralValue

Whether to perform unicode normalization on lexicalValue.

| Edit this page View Source

DateTimeNode(DateTimeOffset, Uri)

Creates a new Date Time valued node.

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

Date Time value.

Uri datatype

Datatype URI.

Properties

| Edit this page 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
| Edit this page View Source

NumericType

Gets the numeric type of the node.

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

Methods

| Edit this page View Source

AsBoolean()

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

Declaration
public bool AsBoolean()
Returns
Type Description
bool
| Edit this page View Source

AsDateTime()

Gets the date time value of the node.

Declaration
public DateTime AsDateTime()
Returns
Type Description
DateTime
| Edit this page View Source

AsDateTimeOffset()

Gets the date time value of the node.

Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type Description
DateTimeOffset
| Edit this page View Source

AsDecimal()

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

Declaration
public decimal AsDecimal()
Returns
Type Description
decimal
| Edit this page View Source

AsDouble()

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

Declaration
public double AsDouble()
Returns
Type Description
double
| Edit this page View Source

AsFloat()

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

Declaration
public float AsFloat()
Returns
Type Description
float
| Edit this page View Source

AsInteger()

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

Declaration
public long AsInteger()
Returns
Type Description
long
| Edit this page View Source

AsString()

Gets the date time value as a string.

Declaration
public string AsString()
Returns
Type Description
string
| Edit this page View Source

AsTimeSpan()

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

Declaration
public TimeSpan AsTimeSpan()
Returns
Type Description
TimeSpan

Implements

ILiteralNode
IEquatable<T>
IComparable<T>
IEquatable<T>
IComparable<T>
IValuedNode
INode
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
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)
  • Edit this page
  • View Source
In this article
  • Constructors
    • DateTimeNode(DateTime)
    • DateTimeNode(DateTime, DateTimeOffset, string, bool)
    • DateTimeNode(DateTime, DateTimeOffset, string, Uri, bool)
    • DateTimeNode(DateTime, string, bool)
    • DateTimeNode(DateTime, string, Uri, bool)
    • DateTimeNode(DateTime, Uri)
    • DateTimeNode(DateTimeOffset)
    • DateTimeNode(DateTimeOffset, string, bool)
    • DateTimeNode(DateTimeOffset, string, Uri, bool)
    • DateTimeNode(DateTimeOffset, Uri)
  • Properties
    • EffectiveType
    • NumericType
  • Methods
    • AsBoolean()
    • AsDateTime()
    • AsDateTimeOffset()
    • AsDecimal()
    • AsDouble()
    • AsFloat()
    • AsInteger()
    • AsString()
    • AsTimeSpan()
  • Implements
  • Extension Methods
Back to top Generated by DocFX