Commit 61c343e2 authored by William Paul Liggett's avatar William Paul Liggett

Log Data to CSV: Removed some unnecessary code.

parent bbd05a9c
......@@ -6,47 +6,6 @@
If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
------------------------------------------------------------------------------------------------------------------ */
// ------------------
// GLOBAL FUNCTIONS
// ------------------
// Outputs the current datetime as an array.
// 0th cell = the datetime with milliseconds (e.g., "3/4/2018 18:49:09:565")
// 1st cell = the date (e.g., "3/4/2018")
// 2nd cell = the time with milliseconds included (e.g., "18:49:09:565").
//
/* !@#$ ... I MIGHT NOT NEED THIS NOW.
function getCurrentDatetime() {
// Records the date and timestamp of when the test began.
var ov_datetime = new Date();
var ov_minutes = ov_datetime.getMinutes();
if(ov_minutes < 10) {
ov_minutes = "0" + String(ov_minutes); // If the minutes were 1 now they are "01".
}
var ov_seconds = ov_datetime.getSeconds();
if(ov_seconds < 10) {
ov_seconds = "0" + String(ov_seconds); // If the seconds were 2 now they are "02".
}
// Saves the date in the format of: "3/4/2018"
var ov_date = String(ov_datetime.getMonth() + 1) + "/" +
String(ov_datetime.getDate()) + "/" +
String(ov_datetime.getFullYear());
// Saves the time with milliseconds in the format of: "18:49:09:565"
var ov_time = String(ov_datetime.getHours()) + ":" +
ov_minutes + ":" + // Set above to fix a display issue.
ov_seconds + ":" + // Same thing here.
String(ov_datetime.getMilliseconds());
// Saves the datetime with milliseconds in the format of: "3/4/2018 18:49:09:565"
var ov_datetime = ov_date + " " + ov_time;
return [ov_datetime, ov_date, ov_time];
}
*/
// ------------------
// GLOBAL VARIABLES
// ------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment