L
L
Leks22018-12-16 21:07:16
Java
Leks2, 2018-12-16 21:07:16

Update a variable once a day?

How to update a variable once a day, when the program enters?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Satisfied IT, 2018-12-16
@Leks2

  1. Check the last update date of a variable
  2. If more than a day has passed between the current date and the update date, update the variable and update the update date.

V
Vladislav Klimanov, 2018-12-18
@ahmpro

now it is necessary that the change itself is updated once a day, for example at 2 am

for android you can use https://developer.android.com/training/scheduling/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question