An earthquake of magnitude 4.0 and depth of 2.80 kilometers occurred 2.98 miles from Yermo, CA in San Bernardino County at 12:38 PM.