class DateTime

def mock_time

def mock_time
  t_now = Time.mock_time
  return nil if t_now.nil?
  DateTime.new(t_now.year, t_now.month, t_now.day, t_now.hour, t_now.min, t_now.sec)
end

def now_with_mock_time

Define now_with_mock_time
def now_with_mock_time
  mock_time || now_without_mock_time
end