Skip to content

Commit bbeb2fa

Browse files
authored
Merge pull request #5657 from segmentio/olesia-ag-patch-2
Added information on timestamp format for time comparison operators
2 parents 86f9c2b + b44b522 commit bbeb2fa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/engage/audiences/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ You can also use computed traits in an Audience definition. For example, you can
5050
> info ""
5151
> Engage supports nested traits, but the Audience builder doesn’t support accessing objects nested in arrays. When you send arrays of objects, they are flattened into strings. As a result, the same conditions that work on strings will work on the array. Within the builder, you can only use string operations like `contains` and `does not contain` to look for individual characters or a set of characters in the flattened array.
5252
53+
### Time comparison
54+
55+
You can use the following time comparison operators in your audience definition:
56+
- `before date`
57+
- `after date`
58+
- `within last`
59+
- `within next`
60+
- `before last`
61+
- `after next`
62+
63+
Only ISO timestamps can be used with these operators.
64+
If the timestamp is not a valid ISO timestamp (for example, a trailing `Z` is missing), Segment won't process the audience in real-time. Learn more about [real-time compute compared to batch](docs/engage/audiences/#real-time-compute-compared-to-batch)
65+
5366
### Funnel Audiences
5467

5568
Funnel audiences allow you to specify strict ordering between two events. This might be the case if you want an event to happen or not happen within a specific time window, as in the following example:

0 commit comments

Comments
 (0)