Someone surely knows this off the top of their head.
I want to add the current time of day (System.getClockTime()) to a "duration" (say: 3.2 hours) to get the future time of day.
Whatcha got?
Thanks!!
Someone surely knows this off the top of their head.
I want to add the current time of day (System.getClockTime()) to a "duration" (say: 3.2 hours) to get the future time of day.
Whatcha got?
Thanks!!
hi,
you can use Time.Now().value + D
where D is the duration needed in seconds
and to get the time and date
Toybox.Time.Gregorian.info(new Time.Moment(Time.Now().value + D))
or
Time.Now().add(new Time.Duration(D));
THANK YOU!