14.06.2019 22:10, Mark Rotteveel wrote:
On 2019-06-14 20:27, Adriano dos Santos Fernandes wrote:
On 14/06/2019 13:01, Mark Rotteveel wrote:
And I repeat what I said earlier: if Firebird uses an offset that is
too large then I can't use the standard features in Java for date/time
handling and I'll need to mangle things myself to get a - hopefully -
meaningful value.

What is the Java range?

[-18:00, +18:00], see 
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/ZoneOffset.html
 :


  This article shows that Java keep seconds in ZoneOffset (not minutes as 
Firebird currently).

18 hours limit is probably because two-byte word could keep just 18 full hour's:

        65535 / (60*60) = 18

but sign should be kept somewhere else...


  Should we reconsider current implementation ?

Regards,
Vlad


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to