Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

time without clock

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Thank you so much. I tried a few ways to get it to use that but didn't have the right syntax 🙂

Best Answer