When did it become common for sailors to learn how to swim?

by Sam_R_K

When watching Michael Bay's "pearl Harbor", I remember hearing a sailor shouting "I can't swim!"

Did the average WWII sailor know how to swim, and if not, when did swimming become mandatory to learn?

IZ3820

Is there any evidence beyond the film that implies swimming was ever an uncommon skill for sailors to have?