When your flight lands or takes-off at night, log it as night. On long-haul, just do an estimate, it is not an exact science, nobody gives a damn about night-or day-hours once you fly commercially so don't waste your time calculating the exact sunrise/sunset, be it Civilian, Nautical or Astronomical...