Hacker News new | past | comments | ask | show | jobs | submit login

They are supported if you are on Elixir 1.3 since we ship with Ecto 2.0 out of the box, but we are waiting to make them the default with the Phoenix generators until we make Elixir 1.3 a hard dependency.

Edit: I was wrong! My comments will apply to Ecto 2.1. Life is confusing living on the edge sometimes




Is there a good writeup on how to use them somewhere?


Since that question is related to Ecto, I will take it. :) Right now it is not possible to use the new Calendar types in Ecto. The plan is for Ecto v2.1 to come in about a month, when v1.3 is a bit more stable, and it will introduce the `:datetime`, `:time` and `:date` types that will map to Elixir's v1.3 new Calendar types.

TL;DR - not yet, soon.


Sounds good! I am actually waiting for this exact feature before starting my next project, since I have to deal with a lot of time range queries (all items from the Last 48h, ...)

I really appreciate the work of you all!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: