class DateTime

:nodoc:

def mock_time

def mock_time
  mocked_time_stack_item = Timecop.top_stack_item
  mocked_time_stack_item.nil? ? nil : mocked_time_stack_item.datetime(self)
end

def now_with_mock_time

def now_with_mock_time
  mock_time || now_without_mock_time
end

def now_without_mock_time

def now_without_mock_time
  Time.now_without_mock_time.to_datetime
end

def now_without_mock_time

def now_without_mock_time
  Time.now_without_mock_time.send(:to_datetime)
end