Water to Breathe

How long can a person live off the oxygen in water? About 1 day…   I was sitting in my office wondering if I had to break down water into H2 and O using Electrolysis, how long could I live ...