[dvsim] Add utils.TS_FORMAT* vars
Move the TS_FORMAT* variables from `dvsim.py` to `utils.py` so that they
can be referred to by other classes if needed.
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/util/dvsim/utils.py b/util/dvsim/utils.py
index 241b322..476a624 100644
--- a/util/dvsim/utils.py
+++ b/util/dvsim/utils.py
@@ -22,6 +22,12 @@
# For verbose logging
VERBOSE = 15
+# Timestamp format when creating directory backups.
+TS_FORMAT = "%y.%m.%d_%H.%M.%S"
+
+# Timestamp format when generating reports.
+TS_FORMAT_LONG = "%A %B %d %Y %H:%M:%S UTC"
+
# Run a command and get the result. Exit with error if the command did not
# succeed. This is a simpler version of the run_cmd function below.