Short-term vs long-term: what is the difference in tax?
A sale is long-term when the shares were held more than one year, which means it counts from the day after the one-year anniversary of purchase. California taxes both at ordinary rates, so the saving is federal.