[
https://issues.apache.org/jira/browse/TINKERPOP-3212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035184#comment-18035184
]
ASF GitHub Bot commented on TINKERPOP-3212:
-------------------------------------------
andreachild opened a new pull request, #3267:
URL: https://github.com/apache/tinkerpop/pull/3267
https://issues.apache.org/jira/browse/TINKERPOP-3212
Improve date handling consistency and allow for round-trippable date
manipulation by changing `asNumber()` to convert dates to milliseconds since
epoch and `dateDiff()` to return milliseconds instead of seconds.
VOTE +1
> Date step consistency
> ---------------------
>
> Key: TINKERPOP-3212
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3212
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.8.0
> Reporter: Andrea Child
> Priority: Major
> Labels: breaking
> Fix For: 3.8.0
>
>
> Dev list post:
> [https://lists.apache.org/thread/okomr6xqgbsk4y0t76xpn7gjx9t26d0c]
> It would be nice to be able to ‘round trip’ the asNumber(), asDate(), and
> dateDiff() steps. Currently these steps cannot be used in combination with
> each other because asNumber() does not handle dates, asDate() expects
> milliseconds, and dateDiff() returns seconds.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)