Added annotations to CM.Disp.FormatTime

This commit is contained in:
Daniel van Noord committed 2020-12-03 15:44:16 +01:00
1 parent e3861f1ffe
commit 4067410397
2 files changed
+8

No files matched your search

+4
View File
@@ -4,6 +4,10 @@
// General functions to format or beautify strings
/**
* This function returns time as a string depending on TimeFormat setting
* @param type Time as number, longFormat 1 or 0.
*/
CM.Disp.FormatTime = function(time, longFormat) {
if (time == Infinity) return time;
time = Math.ceil(time);