phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: why time and date data types are signed types?
Date Mon, 01 Feb 2016 16:38:00 GMT
Hi William,
Our date types are signed so that you get a larger range: both positive
millis after 1/1/1970 and negative millis before 1/1/1970.
Thanks,
James

On Monday, February 1, 2016, William <yhxx511@163.com> wrote:

> Hi all,
>    For time and date data types, such as Time, Date and Timestamp, we
> cannot say a Time value is negative or positive and they don't have the
> 'binary sort issue' as signed integer has. So I think they should be
> implemented as UNSIGNED_LONG instead of LONG.
>   Can someone tell me why they are implemented as signed types?
>
> Thanks
>
>
>
>

Mime
View raw message