Implemented timeMock.replaceGlobalFunctions()