I am using java to query google cloud datastore in order to find out whether an entry has been there more than one day, and if yes then delete it. I have something like this:
if (requestUploaded == true) {
datastore.delete(row_to_delete);
I want to add a logic there on to getting the current time and then check if datastore entry is older than one day, then delete. Abit new to Java so finding it hard to pass in the right arguments.
Thanks!
Aucun commentaire:
Enregistrer un commentaire