dateTime in SADL #613
AbhaMoitra
started this conversation in
General
Replies: 2 comments 3 replies
-
It seems I should replace "T" by space in |
Beta Was this translation helpful? Give feedback.
3 replies
-
@crapo - thank you. For our project we are planning to use UTC and we have it working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@crapo : I am using dateTime in a SADL model and then I query the dateTime to generate a csv file. I am not sure I understand what is going on; here are 2 examples I tried out following examples in https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ISO_OFFSET_DATE_TIME
Example 1: in SADL
has generatedAtTime "2017-03-23T10:03:16"
In OWL file
<j.0:generatedAtTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime"
>2017-03-22T20:00:00-04:00</j.0:generatedAtTime>
In csv file
Wed Mar 22 20:00:00 EDT 2017
Example2: in SADL
has generatedAtTime "2017-03-23T10:03:16+04:00"
In OWL file
<j.0:generatedAtTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime"
>2017-03-22T23:16:00-04:00</j.0:generatedAtTime>
In csv file
Wed Mar 22 23:16:00 EDT 2017
Beta Was this translation helpful? Give feedback.
All reactions