it would work anywhere you could figure out the direction of the light. An example might be a tree on top of a hill, compare that to that tree's shadow on some high cliffs. That's not going to be particularly accurate, but it would get you going in the right general direction.
If you can figure out where the sun is, and you know what time it is, you're in good shape.
If you can figure out where the sun is, and you know what time it is, you're in good shape.