In the 1800s there was two measurements of dates. The maritime day ran from noon till noon (think 'noon sightings') and the terrestrial day from midnight to midnight.
Stamford Raffles was born at sea - on July 4th 1781, which was July 5th 1781 on land. He had two birth dates and he died at age 44 or 45 depending on which one you use.
By the way, this is a very interesting book about the founder of Singapore and "the Honourable, the Lieutenant Governor of Java", during the brief respite the Dutch colony had during the Napoleonic wars.