Date or Length Hours Since User's Last Session

Hello! I’m searching for a way for a flow to determine the length of hours since the users last session.

For instance if 24 hours since last session then… else…

Or, if day is not equal to last sessions date then… else…

Is there a way for flow to determine this?

Thanks so much!

use {timestamp}, which is a built-in variable and means UNIXTIME.

save {timestamp} to a project variable in the session, and in the next session, compare it with {timestamp} in the current session using code block.

1 Like

Kun - Hello, any idea how to easily determine the number of consecutive days logged on? My use case is to congratulate them on a mini milestone like “congrats, you’ve an endurance runner! You logged on 3 consecutive days!”