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


##########
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:
   added in 
https://github.com/apache/tinkerpop/pull/2223/commits/cc87521b7c1586aeae4b5a52f57633d628c17286



-- 
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