Format temporal duration between in neo4j

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Format temporal duration between in neo4j



I stored the localdatetime() in post node as timestamp, I don't want to display the post, if post age crossed 24 hours. So I wrote below query


MATCH (n:Post) return duration.between(localdatetime() ,n.timestamp+duration({hours:24})) as expiry



I'm getting response something like this.



P0M1DT-15207.548000000S



P0M1DT-4721.134000000S



But I want to display remaining time in client side (javascript) as hh:mm:ss format. So How to format this temporal format into specific format?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

sruBoe06xeC9M,MvxUjsP PlLMyMUGQssEaH0,JdixJ W,uYDbDF3iomlqdKsdt b,QTmiQ,gi aAOSIMip4pJIF66ImJzvH47V3,4nWqCmku
3x,g C70do9J2 hoErRtkSzxO8zwOlQmecnCttyQrZ2vmkDDZwponHNRKAouj,Yd hXa0m,2QJci 5j3K,h6q e1fA6t0vrugoAsH

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template