geoprimsField-grade geospatial math

The four aviation nights

All four US aviation night periods for a place and date, each with its regulation: logging night, passenger-currency night, position lights, and Part 107 civil twilight.

2026-06-21 21:31 local (2026-06-22 0331Z) to 2026-06-22 04:32local (2026-06-22 1032Z)

Night landings for passenger currency count after 21:31 local. This landing is loggable night but does not count for currency.

  • Logging night uses the sun at 6° below the horizon; the Air Almanac is the legal source and can differ by a minute.
Logging night, §1.1
Position lights, §91.209
Part 107 evening twilight, §107.29(c)
Part 107 morning twilight, §107.29(c)
Currency landings count from
Landing is loggable night
Provenance
Computed by
time.sun.aviation-nights 1.0.0, core 0.1.0
Model
Sunrise and sunset (−0.833°) and civil twilight (−6°) from the NREL SPA geometric sun, for the evening of the date and the next morning
Accuracy
Within 1 minute of the windows built from USNO times at 100 places (491 windows); the Air Almanac, the legal source for twilight, tabulates to the minute
Notes
1 shown with the answer
Cites
Federal Aviation Administration, 14 CFR 1.1, General definitions (night); Federal Aviation Administration, 14 CFR 61.57(b), Night takeoff and landing experience; Federal Aviation Administration, 14 CFR 91.209, Aircraft lights; Federal Aviation Administration, 14 CFR 107.29, Operation at night

Something look off?

Your values

Showing an example. Change anything.
More options 1
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Sunrise and sunset (−0.833°) and civil twilight (−6°) from the NREL SPA geometric sun, for the evening of the date and the next morning

Show your work

  1. Sunset and sunrise

    the sun's centre at −0.8333°, its radius and refraction allowed for

    at 39.7392°, -104.9903° = 2026-06-21 20:31 local (2026-06-22 0231Z) to 2026-06-22 05:32 local (2026-06-22 1132Z)

  2. Civil twilight

    the sun 6° below the horizon, which is when logging night begins

    −6° at 39.7392°, -104.9903° = 2026-06-21 21:04 local (2026-06-22 0304Z) to 2026-06-22 05:00 local (2026-06-22 1100Z)

  3. Passenger currency

    one hour after sunset to one hour before sunrise

    an hour inside 2026-06-21 20:31 local (2026-06-22 0231Z) to 2026-06-22 05:32 local (2026-06-22 1132Z) = 2026-06-21 21:31 local (2026-06-22 0331Z) to 2026-06-22 04:32 local (2026-06-22 1032Z)

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Within 1 minute of the windows built from USNO times at 100 places (491 windows); the Air Almanac, the legal source for twilight, tabulates to the minute

When to use this: Use this when a regulation turns on which night it is: logging night flight, carrying passengers on night currency, when position lights are required, and the civil-twilight window a Part 107 operation works to. All four are computed for one place and date, each shown beside the regulation that defines it, because they start and end at different times.

Limitations: These are the US definitions for the place and date you enter. The Air Almanac is the legal source for twilight and tabulates to the minute; this computes the same events from the sun's geometry and agrees within a minute. It does not know your aircraft's equipment, your currency record, or any waiver, and it does not decide whether a flight is legal.

Worked example: Denver on 2026-06-21, landing at 21:20 local. Source: add-practitioner-essentials scenario: loggable night that does not count toward §61.57(b). It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Local date
2026-06-21
Landing time (local)
21:20
Latitude
39.7392 deg
Longitude
-104.9903 deg
Time zone or UTC offset
-06:00

You get

Passenger-currency night, §61.57(b)
2026-06-21 21:31 local (2026-06-22 0331Z) to 2026-06-22 04:32 local (2026-06-22 1032Z)
Logging night, §1.1
2026-06-21 21:04 local (2026-06-22 0304Z) to 2026-06-22 05:00 local (2026-06-22 1100Z)
Position lights, §91.209
2026-06-21 20:31 local (2026-06-22 0231Z) to 2026-06-22 05:32 local (2026-06-22 1132Z)
Part 107 evening twilight, §107.29(c)
2026-06-21 20:31 local (2026-06-22 0231Z) to 2026-06-21 21:01 local (2026-06-22 0301Z)
Part 107 morning twilight, §107.29(c)
2026-06-22 05:02 local (2026-06-22 1102Z) to 2026-06-22 05:32 local (2026-06-22 1132Z)
Currency landings count from
21:31
Landing is loggable night
yes
Landing counts for passenger currency
no
Landing check
2
Part 107 lighting, §107.29(a)(2) and (b)
Anti-collision lighting visible for at least 3 statute miles, with a flash rate enough to avoid a collision, is required during civil twilight (§107.29(b)) and at night (§107.29(a)(2)); night also needs the §107.65 training.

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 22 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

UTC: Coordinated Universal Time
The world's civil time standard, kept within 0.9 s of Earth's rotation by leap seconds. Aviation calls it Zulu time, written with a Z. Source: IERS Bulletin C (leap seconds)