【发布时间】:2017-04-16 10:55:56
【问题描述】:
我正在尝试在节点中插入当前时间和日期(来自 php 页面),以便我能够检查哪个用户在什么时间和日期注册到我的网站。 就像在 mysqli 中使用 'now()' 我们插入 '2017-04-16 16:23:35'。
谢谢...
【问题讨论】:
我正在尝试在节点中插入当前时间和日期(来自 php 页面),以便我能够检查哪个用户在什么时间和日期注册到我的网站。 就像在 mysqli 中使用 'now()' 我们插入 '2017-04-16 16:23:35'。
谢谢...
【问题讨论】:
如果您使用 Cypher 插入此内容,只需将该属性设置为 timestamp() 函数,该函数以毫秒为单位捕获当前时刻,您可以在需要时将其格式化为日期字符串。
编辑:
正如 Michael Hunger 所说,APOC Procedures 有 several date/time formatting, parsing, and conversion functions 可以帮助您。
【讨论】:
apoc.date.format(timestamp())neo4j-contrib.github.io/neo4j-apoc-procedures