LiteralExtensionsToLiteralTime Method (DateTime, INodeFactory, Boolean) |
Creates a new Time typed literal.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static ILiteralNode ToLiteralTime(
this DateTime dt,
INodeFactory factory,
bool precise
)
<ExtensionAttribute>
Public Shared Function ToLiteralTime (
dt As DateTime,
factory As INodeFactory,
precise As Boolean
) As ILiteralNode
Parameters
- dt
- Type: SystemDateTime
Date Time. - factory
- Type: VDS.RDFINodeFactory
Node Factory to use for Node creation. - precise
- Type: SystemBoolean
Whether to preserve precisely i.e. include fractional seconds.
Return Value
Type:
ILiteralNodeLiteral representing the time.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also