Sorry, I see my mistake. I know that it's an overflow but I forgot that '2' 
is a signed 64 int so the max allowed is

julia> 2^63-1
9223372036854775807

sexta-feira, 29 de Abril de 2016 às 14:26:38 UTC+1, Yichao Yu escreveu:
>
> On Fri, Apr 29, 2016 at 9:17 AM, J Luis <[email protected] <javascript:>> 
> wrote: 
> > OK, now I'm puzzled (0.4 on Win 64) 
> > 
> > julia> 2^60 
> > 1152921504606846976 
> > 
> > julia> 2^62 
> > 4611686018427387904 
> > 
> > julia> 2^63 
> > -9223372036854775808 
> > 
> > julia> 2^64 
> > 0 
> > 
> > 
>
> This is integer overflow. 
>
> > 
> > 
> > sexta-feira, 29 de Abril de 2016 às 14:03:52 UTC+1, Stefan Karpinski 
> > escreveu: 
> >> 
> >> I'll answer with a pair of questions: 
> >> 
> >> what range of dates can you represent using a 64-bit integer to 
> nanosecond 
> >> precision? 
> >> what range of dates can you represent using a 64-bit integer to 
> >> millisecond precision? 
> >> 
> >> 
> >> On Fri, Apr 29, 2016 at 8:06 AM, Ben Southwood <[email protected]> 
> >> wrote: 
> >>> 
> >>> Are there any packages that can handle "Unix style" times?  How come 
> >>> Julia can only handle seconds in 0.4.5 and milliseconds in 0.5 
> (unstable)? 
> >>> Shouldn't we just aim big and go all the way to nanos? 
> >>> 
> >>> For example, it would be great if I could handle the following times. 
> >>> 
> >>> 2015-12-11 09:46:40.882362Z 
> >>> 
> >>> 2015-09-11 14:37:12.960014+01:00, 
> >>> 
> >> 
> > 
>

Reply via email to