How do sailors determine the time while at sea?

There are several possible ways: