Hey,
I have a struct where I want to store the timestamp of the last activity.
I’m a bit confused about how to deal with that.
Should I/How:
- keep std.time.Instant in my struct and operate on it, or
- unpack it into something like isize and keep isize?
- how should I subtract X seconds from the current time? there is isize ns ans isize of seconds under timestamp, should i recreate Instance manualy after substracion?
- Why isn’t there a separate TimeDelta / Duration struct for this?
- why i dont have a single isize
What’s the recommended approach?
THX!