11-25-2021 20:45
11-25-2021 20:45
Hi,
I am trying to enter the world of creating an app for my sense. I would like to be able to press a button on the screen and have it display the time (when the button pressed) on the screen.
I would rather NOT use the clock tick thing because that just seems like a waste of resources when it will probably only do it once a day or once every couple of days.
So, press the button, display the time and save that time in the app to be checked back on later.
If someone can point me in a good direction, that would be fantastic.
Thanks
Answered! Go to the Best Answer.
11-25-2021 21:03
11-25-2021 21:03
You could just use
new Date()
However, clock.ontick events don't occur when the display is off, so it's not usually a huge issue.
11-25-2021 21:03
11-25-2021 21:03
You could just use
new Date()
However, clock.ontick events don't occur when the display is off, so it's not usually a huge issue.
11-25-2021 21:08
11-25-2021 21:08
Thank you so much. I tried a few ways to get it to use that but didn't have the right syntax 🙂