An earthquake of magnitude 4.0 and depth of 4.10 kilometers occurred 11.87 miles from Barstow, CA in San Bernardino County at 06:40 AM.