Sunrise/sunset in polar climates

When one uses the various sunrise/sunset tags, but is in an area where the sun doesn’t necessaily rise or set on a particular day (close to the earth’s poles), how is the sunrise/sunset time evaluated? Does it come out as null, or as midnight, etc.?