When flying from Bali to Ottawa, the time of day you decide to fly out makes little to no difference towards the overall price you’ll pay on tickets.
If you book a flight to Ottawa from Bali, you will be flying to Ottawa, which is the city’s only airport. Ottawa (YOW) is located 10.6 km from the centre of Ottawa.
These are just IATA (International Air Transport Association) codes. They are used in aviation to identify and differentiate airports. That’s why a Denpasar Bali Ngurah Rai Airport to Ottawa Airport flight would often be abbreviated as a DPS to YOW flight.