[ 
https://issues.apache.org/jira/browse/TINKERPOP-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417070#comment-17417070
 ] 

Joshua Shinavier commented on TINKERPOP-2596:
---------------------------------------------

Option 2 kinda makes sense, if "bare" timestamps are allowed at all. Even with 
full date-times, there is some context dependence if the time zone is omitted – 
it defaults to a "local" time zone, which has to be predefined. We could assume 
that a reference timestamp is also predefined, and bound to a specific instant 
near the beginning of query evaluation. You could have even weirder things than 
hours and minutes without a date, e.g. seconds and milliseconds without 
minutes. Is it worth trying to support these oddball cases? Idk, but you could 
do it...

> datetime function
> -----------------
>
>                 Key: TINKERPOP-2596
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2596
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: language
>    Affects Versions: 3.5.1
>            Reporter: Stephen Mallette
>            Priority: Major
>
> Include a {{datetime()}} function in the grammar that will parse a ISO-8601 
> formatted date:
> {code}
> datetime('2021-07-21')
> datetime('2021-07-21T01:12:59')
> datetime('2021-07-21T01:12:59+0500')
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to