Update app.js

pull/2957/head
inhof009 2023-08-06 14:52:15 -04:00 committed by GitHub
parent 2e594e47db
commit e81b35a347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ function displayData() {
string += name+": "+value+" "+unit+"\n";
//g.drawString(name+": "+value+" "+unit, width, height*key+10);
}
var date = new Date();
var hours = date.getHours();
var minutes = date.getMinutes();
// Format the time as a string
var timeString = hours.toString().padStart(2, "0") + ":" +
minutes.toString().padStart(2, "0");
E.showMessage(string,"Data");
}