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

Jorge Bay commented on TINKERPOP-1745:
--------------------------------------

bq. Can we assume that the serialized values are always in UTC?

The underlying value is milliseconds since unix epoch, we should return a 
DateTimeOffset instance with offset 0. The user can later use ToLocalTime() or 
ToOffset() methods that return the same representation with another offset but 
the equality evaluates to true.

> Gremlin .NET: Use DateTimeOffset instead of DateTime to represent g:Date
> ------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1745
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1745
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: language-variant
>            Reporter: Jorge Bay
>
> {{DateTimeOffset}} structure unambiguously identifies a single point in time, 
> unlike {{DateTime}} which contains calendar information.
> I think we should use {{DateTimeOffset}} for the default representation of 
> g:Date.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to