From e81b35a3472055dcf36268e010715b638f0630be Mon Sep 17 00:00:00 2001 From: inhof009 <141580984+inhof009@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:52:15 -0400 Subject: [PATCH] Update app.js --- apps/usgs/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/usgs/app.js b/apps/usgs/app.js index 244e952df..a38603ed8 100644 --- a/apps/usgs/app.js +++ b/apps/usgs/app.js @@ -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"); }