spmallette commented on code in PR #2223:
URL: https://github.com/apache/tinkerpop/pull/2223#discussion_r1330279212


##########
docs/src/upgrade/release-3.7.x.asciidoc:
##########
@@ -29,6 +29,18 @@ complete list of all the modifications that are part of this 
release.
 
 === Upgrading for Users
 
+==== Date manipulation functions
+
+Date manipulations in Gremlin queries were only possible using closures, which 
may or may not be supported by
+different providers. In 3.7.1, we introduce the `asDate()`, `dateAdd` and 
`dateDiff` steps aimed to replace the usage of closure.
+
+The following example demonstrates usage of newly introduced steps:
+
+[source,text]
+----
+gremlin> g.inject("2023-08-02T00:00:00Z").asDate().dateAdd(DT.day, 
7).dateDiff(datetime("2023-08-02T00:00:00Z"))
+==>604800
+----

Review Comment:
   please include the JIRA and further links to reference documentation as is 
form for these entries..



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to