Global::timeConsumed Method [AX 2012]

Returns a time consumed string in the formation X hours X minutes X seconds. If X is 0 will not include the value + text.

Handles up to a 24 hour time difference not dependent on start/end time. If time consumed > 24 hours will only report time over 24 hour intervals.

Syntax

client server public static str timeConsumed(int _startTime, int _endTime)

Run On

Called

Parameters

  • _startTime
    Type: int
    Time process started
  • _endTime
    Type: int
    Time process ended

Return Value

Type: str
(string) x hour/s x minute/s x seconds

Remarks

The method handles up to a 24 hour time difference not dependent on the start and end time. If the time consumed is more than 24 hours the method will only report time over 24 hour intervals.

See Also

Reference

Global Class