'Decorate time.localtime() for the purpose of testing mocking
@return time.localtime() if setTime was called with None'

@staticmethod
def localtime(x=None):

    if ((MyTime.myTime is None) or (x is not None)):
        return time.localtime(x)
    else:
        return time.localtime(MyTime.myTime)
