On Tuesday, September 20, 2016 at 9:24:03 AM UTC+2, Noel Grandin wrote:
>
>
>
> On 20 September 2016 at 08:13, Philippe Marschall <philippe....@gmail.com 
> <javascript:>> wrote:
>
>> Hi
>>
>> I'm looking at org.h2.api.TimestampWithTimeZone in the master branch 
>> compared to the 1.4.192 release and have a few questions
>>
>>    - Why return getYear(), getMonth() and getDay() longs instead of ints?
>>    
>> No reason, probably just wasn't thinking at the time. Feel free to submit 
> a patch.
>

There you go:

https://github.com/h2database/h2database/pull/360
 

>  
>
>>
>>    - 
>>    - timeNanos appears to be in the timeZone rather than UTC, am I 
>>    understanding this correctly?
>>    
>>
>> Nope, it's also in UTC.
>

Just to make sure I get it right: assuming I have a timestamp like
2007-12-03T00:00:00.000000001+00:01

timeNanos would we 60000000001 (one minute from the utc offset plus a nano 
second).

Cheers
Philippe

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to