Click or drag to resize

TemporalValueConvertToTimeSpan Method

Converts this TemporalValue instance to a TimeSpan instance.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
protected virtual TimeSpan ConvertToTimeSpan()

Return Value

Type: TimeSpan
A DateTime value
Exceptions
ExceptionCondition
InvalidCastExceptionIf conversion is not possible
ValueTruncationExceptionIf conversion results in a truncation under ms precision
OverflowExceptionIf the value falls beyond valid range of target type
See Also