You can treat it as either. It is a simple calculation.
A clue: One earth day is 24 hours, but that is NOT the time taken for the earth to complete a 360 degree revolution (despite the fact that this is what practically all textbooks claim).
Once you figure out why not, you should be able...