Skip to content

Difference (duration) of two xsd:dateTime literals #4780

Answered by hmottestad
arrascue asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if this is possible. The SPARQL standard only seems to support numbers when using subtraction.

You can use < and > to check which is smaller, but it won't give you the diff.

I couldn't find an epoch function either. Which would have made it possible to convert the date time to a number you could diff.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hmottestad
Comment options

@arrascue
Comment options

Answer selected by arrascue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants