Deductions & credits

If filing across two years, can the periods overlap entirely?   For example:

 

Ccould I use the same 365 day physical presence test dates: June 1, 2018 to May 31, 2019

 

for both 2018 taxes & 2019 taxes?