11-25-2021 20:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-25-2021 20:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
11-25-2021 21:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-25-2021 21:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software

11-25-2021 21:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-25-2021 21:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software

11-25-2021 21:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-25-2021 21:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you so much. I tried a few ways to get it to use that but didn't have the right syntax 🙂
