Further implementation of script testing (e.g.,record-type scripts working); add logs to test script output

This commit is contained in:
2023-03-09 18:19:02 -06:00
parent e2a3b40145
commit dff7c972bf
8 changed files with 138 additions and 26 deletions

View File

@ -253,6 +253,16 @@ class ValueUtils
return (`${date.toString("yyyy-MM-dd hh:mm:ss")} ${date.getHours() < 12 ? "AM" : "PM"} ${date.getTimezone()}`);
}
public static formatTime(date: Date)
{
if(!(date instanceof Date))
{
date = new Date(date)
}
// @ts-ignore
return (`${date.toString("hh:mm:ss")} ${date.getHours() < 12 ? "AM" : "PM"} ${date.getTimezone()}`);
}
public static formatDateTimeISO8601(date: Date)
{
if(!(date instanceof Date))