在neo4j中添加时间戳

在neo4j中添加时间戳,neo4j,cypher,Neo4j,Cypher,我希望在neo4j中使用时间戳(长值)在一个范围内找到出生日期。 这里我正在匹配id为10662的用户。与其他用户一起,出生日期在出生日期的+3年到-3年之间 10800000的值是以毫秒为单位的3年,但我没有得到任何结果,我确信一定是出了问题。但无法找到问题所在 我将感谢任何帮助 match (u:user {id : "10662"})-[r:has_profile]->(p:profile) , (u2:user)-[r2:has_profile]->(p2:profile)

我希望在neo4j中使用时间戳(长值)在一个范围内找到出生日期。 这里我正在匹配id为10662的用户。与其他用户一起,出生日期在出生日期的+3年到-3年之间

10800000的值是以毫秒为单位的3年,但我没有得到任何结果,我确信一定是出了问题。但无法找到问题所在

我将感谢任何帮助

match (u:user {id : "10662"})-[r:has_profile]->(p:profile)  , (u2:user)-[r2:has_profile]->(p2:profile)  where  p.user_id <> p2.user_id  and u2.date_birth >= u.date_birth -toInt(10800000) and u2.date_birth <= u.date_birth + toInt(10800000)  return collect (u2.id) as id;
匹配(u:user{id:“10662”})-[r:has_profile]->(p:profile),(u2:user)-[r2:has_profile]->(p2:profile),其中p.user_id p2.user_id和u2.date_birth>=u.date_birth-toInt(10800000)和u2.date_birth3年(假设每年365天)实际上是946080000

这对你有用吗

MATCH (u:user {id : "10662"})-[r:has_profile]->(p:profile), (u2:user)-[r2:has_profile]->(p2:profile)
WHERE
  p.user_id <> p2.user_id AND
  abs(u2.date_birth - u.date_birth) >= 94608000000
RETURN collect(u2.id) as id;
MATCH(u:user{id:“10662”})-[r:has_profile]->(p:profile),[u2:user)-[r2:has_profile]->(p2:profile)
哪里
p、 用户id p2.用户id和
abs(u2.出生日期-出生日期)>=946080000
返回collect(u2.id)作为id;
这同样有效:

match(u:user{id:“10662”})
,(u2:用户)-[r2:具有_配置文件]->(p2:配置文件)
哪里
p、 用户id p2.user\U id
和u2.date\u birth>=u.date\u birth-946080000
和u2.出生日期