Added annotations to CM.Disp.FormatTime

This commit is contained in:
Daniel van Noord
2020-12-02 21:55:57 +01:00
parent 0f5291b41c
commit e256d39101
2 changed files with 8 additions and 0 deletions

View File

@@ -846,6 +846,10 @@ CM.Data.ValCookies = ['Pure heart biscuits', 'Ardent heart biscuits', 'Sour hear
// General functions to format or beautify strings // 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) { CM.Disp.FormatTime = function(time, longFormat) {
if (time == Infinity) return time; if (time == Infinity) return time;
time = Math.ceil(time); time = Math.ceil(time);

View File

@@ -4,6 +4,10 @@
// General functions to format or beautify strings // 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) { CM.Disp.FormatTime = function(time, longFormat) {
if (time == Infinity) return time; if (time == Infinity) return time;
time = Math.ceil(time); time = Math.ceil(time);