Patent ID: 8352922

Claim:
An apparatus for providing a simulated date and/or time to a time-sensitive application, the apparatus comprising: a detection module to detect an invocation of a time handler method, the time handler method configured to retrieve the system time of a computing system; a capture module to capture the contents of a call stack once the invocation is detected; a stack walk module to walk the call stack until reaching a requestor method that initiated the invocation; a stack analysis module to analyze the contents of the call stack to determine which requestor method initiated the invocation; the stack analysis module further configured to determine whether the requestor method that initiated the invocation is to receive one of a real system time and a simulated system time; a return module configured to return a real system time in the event the requestor method is to receive the real system time; and the return module further configured to return a simulated system time in the event the requestor method is to receive the simulated system time.