# How to create an event for past?

**URL:** <https://forum.confluent.io/t/how-to-create-an-event-for-past/6400>\
**Category:** ksqlDB\
**Created:** [31 October 2022 19:10 UTC](https://forum.confluent.io/t/how-to-create-an-event-for-past/6400 "2022-10-31T19:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![burakkurt](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@burakkurt](https://forum.confluent.io/u/burakkurt)\
**Post date:** [31 October 2022 19:10 UTC](https://forum.confluent.io/t/how-to-create-an-event-for-past/6400/1 "2022-10-31T19:10:35Z")

</div>

Hi,  
I have a stream which has `state` and `lastModifiedDate` fields.  
My where clause is: state = `X` and lastModifiedDate \< (now - 30 minutes).  
I have a 5 minutes tumbling window in my stream and i changed timestamp to now+32 minutes as millisecond epoch by a column.  
Because **my purpose is make ksqldb window function to evaluate this event after 30 minutes passed** and if it satisfies my where clause create an event for that.  
**But ksqldb evaluates event instantly** , even i change timestamp to now+N minutes.  
Is there a way to make ksqldb to re-evaluate old my event after a specific time passed?

---

<div class="post-metadata">

**Author:** ![burakkurt](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@burakkurt](https://forum.confluent.io/u/burakkurt)\
**Post date:** [1 November 2022 20:22 UTC](https://forum.confluent.io/t/how-to-create-an-event-for-past/6400/2 "2022-11-01T20:22:43Z")

</div>

@rmoff@danicafine I would be grateful if you can help 🙏

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [30 November 2022 19:11 UTC](https://forum.confluent.io/t/how-to-create-an-event-for-past/6400/3 "2022-11-30T19:11:02Z")

</div>

Closed on 30 November 2022 19:11 UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
