Hello everyone!

I am pretty much new to Stata and wanted ask pretty simple questions that confuse me. I am working with panel data consisting of 9 countries over the period of 2000-2017. I want to do regressions including time fixed effects, country fixed effects and both country and time fixed effects. My panel setting is "xtset country_id year". I have read here that command for country fixed effects is just "xtreg y x, fe".

Is command "xtreg y x i.year, fe" controls for both country and time fixed effects? And what is the command for just time fixed effects?

Thank you for your help, Sergey Medvedev