Royal Navy officer during the First and Second World Wars, rising to the rank of Commander (1896–1939)