An earthquake of magnitude 4.2 and depth of 3.40 kilometers occurred 12.50 miles from Ridgecrest, CA in Kern County at 12:49 AM.