library for the following scenario. Can you please help me with it?
I need an object with date of now with time at 10:00. Next, I need to change this object by adding one day or by subtracting one day (depending on a certain condition).
So, I made the first part:
Copy code
var todayAtTen = Clock.System.todayAt(TimeZone.UTC).atTime(hour = 10, minute = 0)
but can't make a second. How can I modify this object by adding one day to it?
l
louiscad
09/09/2020, 6:57 PM
Why modify the object? Just create a new one with the time difference you need. Immutability is safer.