`Sessions.select { Sessions.lastUpdated greaterEq ...
# exposed
m
Sessions.select { Sessions.lastUpdated greaterEq DateTime.now().minusSeconds(5).millis }
Is this the best way of getting current time - 5 seconds with exposed?
t
If
lastUpdated
field is a
long
type then yes.
m
Yeah it is. Thank you.
@tapac is there a better way of storing a timestamp with exposed?
t
You can use datetime() if you are ready to handle timezones.
m
Thank you