keen/keen-js

timeframe for custom datetime properties

Closed this issue · 2 comments

Hi guys!
I already found the notice inside the docs (https://keen.io/docs/api/#timeframe) that says timeframes can only applied to the keen.timestamp property.
Why did you choose this restriction? And is there any solution to make intervals (+ timeframes) work with my custom datetime property?

tbarn commented

It is because the only property that supports a Datetime type is the keen.timeframe.

One alternative is that you can send it in with the Datetime enrichment and then do a filter with that. See more here: https://keen.io/docs/streams/datetime-enrichment/

thank you for the hint, @tbarn ! I'll check out the datetime enrichment :)