I'm looking for some help on displaying a Time in military time format that is greater than 24 hours. I have a report which calculates a total number of seconds an agent is logged into their system. I then use the following formula to convert the number of seconds to military time:
numbervar input := Sum ({@Duration},{d_agent_define.lname});
numbervar hours;
numbervar minutes;
numbervar seconds;
hours := int(input/3600);
minutes := int(remainder(input,3600)/60);
seconds := remainder(remainder(input,3600),60);
Time(hours,minutes,seconds);
Although rare, if an employee forgets to log out, the sum of their duration may be greater than 24 hours. If this happens, the formula generates an error stating "Hour must be between 0 and 23", which causes the report to die at this point. As an example, an agents total duration in seconds is 89,238. Is there any way to display this as 24:47:18?
Thanks in advance!
numbervar input := Sum ({@Duration},{d_agent_define.lname});
numbervar hours;
numbervar minutes;
numbervar seconds;
hours := int(input/3600);
minutes := int(remainder(input,3600)/60);
seconds := remainder(remainder(input,3600),60);
Time(hours,minutes,seconds);
Although rare, if an employee forgets to log out, the sum of their duration may be greater than 24 hours. If this happens, the formula generates an error stating "Hour must be between 0 and 23", which causes the report to die at this point. As an example, an agents total duration in seconds is 89,238. Is there any way to display this as 24:47:18?
Thanks in advance!