What HCast-san explained is the definition of 夕方 as a meteorological term.
In daily conversation, it is used to mean the period around the sunset time, from when it starts to become dark until it is completely dark. So it varies from season to season.