Created on 06-11-2017 09:48 AM
Question: Are there any functions which allow date arithmetic with phoenix?
> select now(), now() + (0.5) ; +---------------------------------+---------------------------------+ | DATE '2017-06-04 16:55:07.989' | DATE '2017-06-05 04:55:07.989' | +---------------------------------+---------------------------------+ | 2017-06-04 16:55:07.989 | 2017-06-05 04:55:07.989 | +---------------------------------+---------------------------------+
0: jdbc:phoenix:> select now(), now() + (0.010416666666667) ; +---------------------------------+---------------------------------+ | DATE '2017-06-04 16:56:31.492' | DATE '2017-06-04 17:11:31.492' | +---------------------------------+---------------------------------+ | 2017-06-04 16:56:31.492 | 2017-06-04 17:11:31.492 | +---------------------------------+---------------------------------+ 1 row selected (0.024 seconds)