Hey guys,
Has anyone here ever had to determine the difference in time between two timestamps from various time zones, such as UTC and IST for example? If so, how did you resolve this?
I am struggling quite a bit and I appreciate your help.
not kotlin but kotlin colored 3
c
Chris Lee
06/09/2023, 2:29 PM
All depends on what “difference in time” in interpreted as. One option is to calculate the difference in UTC, but that may not align with your business needs.
m
M Peeran
06/09/2023, 2:31 PM
yep
p
Pablichjenkov
06/09/2023, 2:49 PM
Translate to a common timezone, let's say 0 latitude, then take the translation to millis and substract