Altogether, the team delivered core earnings per share of $1.68 and revenue of $7.6 billion, resulting in a core operating margin of 4.6%, a 40 basis point increase year on year.
You'll see management's outlook for the year.
We've increased core earnings per share to $7.25, an increase of nearly 30% year on year.
As for revenue, FY '22 now looks to be in the range of $32.6 billion, up more than 10% year on year.
In addition, we remain committed to delivering a minimum of $700 million in free cash flow for the year, while increasing core operating margin to 4.6%, a 40 basis point improvement year on year.
Given the higher revenue, I'm particularly pleased with our ability to drive an extra 30 basis points of margin improvement compared to our expectations in December mainly through broad-based strength in several key end markets benefiting from long-term secular trends as well as outstanding execution by our business, operations, and supply chain teams.
For the quarter, revenue was approximately $7.6 billion, up 10.6% over the prior-year quarter and ahead of the midpoint of our guidance from December.
Our GAAP operating income during the quarter was $313 million, and our GAAP diluted earnings per share was $1.51.
Core operating income during the quarter was $344 million, an increase of 21% year over year, representing a core operating margin of 4.6%, up 40 basis points over the prior year.
Core diluted earnings per share was $1.68, a 32% improvement over the prior-year quarter.
Revenue for our DMS segment was $3.8 billion, an increase of 4% on a year-over-year basis.
Core margin for the segment came in at 5.1%.
Revenue for our EMS segment came in at $3.8 billion, an increase of 19% on a year-over-year basis.
Core margin for the segment was 4%, up 90 basis points over the prior year, reflecting improved mix and solid execution by the team.
In Q2, inventory days came in at 86 days.
Net of these inventory deposits, inventory days was 71 in Q2.
In spite of these two factors impacting inventory, our second quarter cash flows from operations were very robust, coming in at $246 million, and net capital expenditures totaled $201 million.
From a total debt to core EBITDA level, we exited the quarter at approximately 1.3 times and with cash balances of $1.1 billion.
During Q2, we repurchased approximately 2.3 million shares for $145 million.
And for the year, we've repurchased 4.4 million shares for $272 million, as we remain committed to returning capital to shareholders.
DMS segment revenue is expected to increase 17% on a year-over-year basis to approximately $4.2 billion, while the EMS segment revenue is expected to increase 11% on a year-over-year basis to approximately $4 billion.
We expect total company revenue in the third quarter of fiscal '22 to be in the range of $7.9 billion to $8.5 billion.
Core operating income is estimated to be in the range of $300 million to $360 million, representing a core margin range of 3.8% to 4.2%.
At the midpoint, this is an improvement of 20 basis points over the prior year and down sequentially, reflecting planned investments in our Q3 quarter.
In Q3, GAAP operating income is expected to be in the range of $276 million to $336 million.
Core diluted earnings per share is estimated to be in the range of $1.40 to $1.80.
GAAP diluted earnings per share is expected to be in the range of $1.24 to $1.64.
The core tax rate in the third quarter is estimated to be approximately 21%.
We've seen this rapid acceleration manifest in top-line revenue growth in excess of 50% this year alone in our automotive end market.
We're now anticipating core earnings per share will be in the neighborhood of $7.25 per share on revenue of approximately $32.6 billion.
Notably, this incremental revenue will improve mix and drive operating leverage, thereby giving us the confidence to raise our core margin by 10 basis points to 4.6% for FY '22, as we continue to drive the organization to 5% and beyond.
Importantly, for the year, we also remain committed to generating in excess of $700 million in free cash flow, in spite of the higher revenue and associated working capital.

Summary:
Altogether, the team delivered core earnings per share of $1.68 and revenue of $7.6 billion, resulting in a core operating margin of 4.6%, a 40 basis point increase year on year.
You'll see management's outlook for the year.
For the quarter, revenue was approximately $7.6 billion, up 10.6% over the prior-year quarter and ahead of the midpoint of our guidance from December.
Our GAAP operating income during the quarter was $313 million, and our GAAP diluted earnings per share was $1.51.
Core diluted earnings per share was $1.68, a 32% improvement over the prior-year quarter.
We expect total company revenue in the third quarter of fiscal '22 to be in the range of $7.9 billion to $8.5 billion.
Core diluted earnings per share is estimated to be in the range of $1.40 to $1.80.
GAAP diluted earnings per share is expected to be in the range of $1.24 to $1.64.
We're now anticipating core earnings per share will be in the neighborhood of $7.25 per share on revenue of approximately $32.6 billion.