An earthquake of magnitude 1.8 and depth of 5.20 kilometers occurred 1.18 miles from Cupertino, CA in Santa Clara County at 01:39 AM.