An earthquake of magnitude 4.0 and depth of 7.00 kilometers occurred 1.33 miles from Danville, CA in Contra Costa County at 10:05 PM.